Thread Subject: How do you know when you are debugging?

Subject: How do you know when you are debugging?

From: Pat Finder

Date: 9 Feb, 2010 03:00:19

Message: 1 of 2

In many languages, it is possible to know while executing the code, if the code is currently being debugged or not.

Is there a built-in Matlab mechanism for the program to know when it is running in the debugger?

Otherwise I would set a global variable, but hey, why bother if it isn't necessary...

Thanks.

Subject: How do you know when you are debugging?

From: ImageAnalyst

Date: 9 Feb, 2010 04:12:19

Message: 2 of 2

Aren't you always debugging, unless you've compiled it into an
executable? In the case of an executable, you can check the
"isdeployed" variable, which will be true for an executable and false
for an m-file.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
debugging Pat Finder 8 Feb, 2010 22:04:05
rssFeed for this Thread

Contact us at files@mathworks.com