When I start debug it runs automatically

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

When I start debug it runs automatically

940件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

845件の閲覧回数
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 件の賞賛
返信

845件の閲覧回数
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 件の賞賛
返信