When I start debug it runs automatically

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When I start debug it runs automatically

379 Views
PEGE
Contributor I

Hello,

 

I use CW 10.1 since two days the program runs automatically when I start debugging. Where can I cancel this operation ? So that i start the programm by pressing Resume button.

 

Regards Peter

Labels (1)
0 Kudos
2 Replies

284 Views
CrasyCat
Specialist III

Hello

 

I assume you are using CodeWarrior V10.x.

Am I right?

 

If not please indicate the target CPU and CodeWarrior version number you are using.

 

If you are using V10.x there are a couple of points you can check:

 

  - Open the Debug Configuration dialog and select your launch configuration in there

  - Switch to the Debug tab in there.

  - In the "Program execution" group is "Stop on startup at" checked?

  - What is specified then in this group?

    If you want the debugger to stop at the main function make sure you checked "User specified"

    and typed main in the edit box (provided your main function name is main).

 

Next point to check is are you generating debug information for the application?

Did you see a message when starting the debugger (something like unable to set breakpoint)?

 

CrasyCat

0 Kudos

284 Views
bingo23
Contributor I

Hi PEGE,

 

I recently faced this same problem in CW 6.3.... after a lot of nerve wracking, i found out that in my startup.c file the jump instruction to the main program was referencing "main()" ; whereas i had declared my main as "Main()".... and as soon as i changed this, the debugger started working fine!!!

Dont know whether this will help... however pls do check!!! 

0 Kudos