The video shows a couple of different approaches for switching between your debugging code and the code for the final version.
4 CommentsOldest to Newest
If you are using breakpoints in the file, you can use DBSTATUS to identify whether you’re debugging or not:
file = uigetfile();
file = ‘foo.txt’;
a = b
Try it both with and without a breakpoint on line a = b
Good call on the direct input when debugging. As a GUI developer I used to debug things this way and it slows you down so much.
I like the flagdebug idea, but what about using something like ? That way you won’t accidentally leave a flag on or off.
*using “isdeployed”. Sorry, code fragment got deleted.
That would be good improvement, but this mechanism I have exists now! :)