Conditional Breakpoints

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

Conditional Breakpoints

1,607 Views
ZiglioNZ
Contributor I

CodeWarrior for Coldfire 7.1

 

Hi everyone,

 

I'd like to enable a breakpoint for when a variable reaches a given value.

The 'Condition' column in the Breakpoints view seems like it should do just that.

Unfortunately I couldn't find in the online manual how to write a condition.

I've tried to enter a string like "a == 2" but after hitting continue, not just the breakpoint was never hit but the IDE became irresponsive and I had to shut it down.

So, I suppose there should be another way of entering conditions.

Does anybode know whether that feature is supported in CodeWarrior for Coldfire? and how?

 

Thanks,

 Emanuel

Labels (1)
0 Kudos
2 Replies

530 Views
admin
Specialist II

Hi,

   i had exactly the same problem with a codewarrior 8.7 for powerpc. To solve it i had to download codewarrior 9.2 (always power architecture version).

 

greetings

0 Kudos

530 Views
CrasyCat
Specialist III

Hello

 

Conditions should be specified using ANSI C syntax (i== 2) if you want to stop when global variable i is equal to 2.

 

If this is not working I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

CrasyCat

0 Kudos