Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts

Tuesday, December 20, 2011

Matlab Debugger Do not Stop

Having done some Matlab development lately, I observed a strange bug. I had a main script program as follow:

clear all;
close all:

MyFunction();

... do something 
In the code debugging process, I tried to place a break point in MyFunction's code, and although the break point appears to be set in the editor GUI, the program do not stop when running!!!

After some research I figure out that the clear all command interfered with Matlab debugger and prevented the program to stop into a function. So the solution was to delete the clear all function and it the worked correctly.

It is really a shame that a 3000 CHF expensive program cannot manage the debugging process in a better way.

Thursday, November 18, 2010

MS visual studio - debug / release options

I am really a big fan of visual studio, but today I helped a friend installing visual studio express edition on his computer and we find out that the release/debug option beside the play button was disabled...strange. So we google the question. Thus we find out that turning back on the release/debug option was quite cumbersome.
The response was find on stackoverflow (http://stackoverflow.com/questions/2812423/how-to-switch-between-debug-release-in-visual-c-2010-express)

And reported here for your convenience:
"
  1. Enable Tools -> Settings -> Expert Settings.
  2. Go to Tools -> Options. In the dialog box, check the Show All Settings option in the bottom left.
  3. In the above dialog, now choose Projects and Solutions -> General. Check the option Show advanced build configurations. Click Okay.

"