AS3 Conditional Breakpoint – enterDebugger()
Streda, Február 4th, 2009Table of contents for flex-tips
- FlexTips
- FlexTip: mx:Text vs. mx:TextArea
- FlexTip: XMLSocket connect() after disconnect from server
- FlexTip: Problem with masks and scalable Flash
- FlexTips: How to add Bitmap to UIComponent
- FlexTip – Stop displaying Focus
- FlexTip: Preventing CheckBox selection with Key.SPACE
- FlexTip: WordWrap for mx:Text
- FlexTip: Add Thumbs to Mx:Slider programatically
- AS3 Conditional Breakpoint – enterDebugger()
I have to confess I didn’t know about great function enterDebugger() in flash.debugger package. If you ever want to have conditional breakpoint you can do it programatically. Just add this statement to your code and debuger will stop as it there would be normal breakpoint. So you can use it in IF statement and call it just when some conditions are met. I think I will use this function a lot from now on
Enjoy
1 Trackbacks/Pingbacks
3 Comments
Pieter
• Visit Site
Február 4th, 2009
He thanks i didn’t know about this one. Conditional breakpoint will be available in the next version of flex but this a nice solution for now
Piergiorgio Niero
• Visit Site
Február 5th, 2009
mmm, good to know
even though i think a REAL conditional breakpoint function should be added to flexbuilder!!!
Franto
• Visit Site
Február 5th, 2009
As Pieter wrote, they should be available in next version of Flex. If that’s true, it’s good news
Sorry, comments for this entry are closed at this time.