Ruby In Steel 1

Back to -Tutorials -Ruby In Steel Tutorials -Archives -Ruby In Steel 1

Dynamic Debugging In Ruby

How to Change Your Program While Debugging!

With Dynamic Debugging you can modify a program while it is being debugged. For example, here I have created a new variable, treasures in the Immediate Window, and then I’ve added it to the Watch window. The drill-down debugger lets me look inside the variable by hovering over its name or expanding it in one of the debugging views.

Changing the value of a simple variable while debugging may not seem all that remarkable. But how about changing the internal structure of objects right inside one of the debugging windows or even creating completely new objects while stopped at a breakpoint? This is what I mean by ‘dynamic debugging’ and it’s just one of the features that we’ve added to the new version of the Cylon debugger.

If you are used to debugging C#, you may take for granted the ability to change the value of a selected variable while debugging. The Cylon debugger for Ruby not only lets you change the value of a variable...

But also its data type...

It doesn’t need to be a simple data type either. You could change a simple String variable, for example, into any object type...

...such as an instance of a custom class...

You can even evaluate code to create new objects right inside the watch window...

Or, using the immediate window you could create new variables and assign new objects to them...

...which can then be watched in the other debugging windows...

This is a simple example of a very powerful capability - allowing you to perform complex tests and trials by modifying a program during an active debugging session.

For more information on the debugging enhancements in Cylon 1.2 see ‘Ruby Debugger Enhancements - Conditional Breakpoints, Tracepoints and more’.

Bookmark and Share   Keywords:  debugger
© SapphireSteel Software 2013
http://www.afriscope.fr/?buy=152959 where to get azithromycin buy cheap urimax in usa buy gleevec usa amorphous fluticasone buy cheapest attentrol buy zithromax online with mastercard prilosec 10 mg in united states orlistat pill in canada order mesterolone online in mayami http://www.afriscope.fr/?buy=594199 http://www.afriscope.fr/?buy=987140 baclofen 10mg ciprofloxacin pills buy armodafinil canada http://www.afriscope.fr/?buy=867601 quinine sulphate 325 mg ciprofloxacin hcl 500 mg ta in france antibotic bactrim in united states lasix 12.5mg femara mexico pharmacy enalapril wholesale more info zithromax z pak more info about nexium over the counter bupropion xl more info about amitriptyline generic http://www.afriscope.fr/?buy=522446 femalegra 100mg in mexico buy aurogra pills 1 gm azithromycin cilostazol 100mg modalert 1000mg sun pharma in france buy ciprofloxacin hcl 500mg information about veenat lowest price vardenafil price avidoxy medication in uk http://www.afriscope.fr/?buy=290437 http://www.afriscope.fr/?buy=35900 buy cheap dilantin info about buy fluticasone cream buying piracetam in the us buy ciprodex buy flonida without a prescription 75 mg xr 150 mg bupropion generic nuvigil online in united states buy acamprol usa buy xenical cheap online in mayami purchase doxycycline http://www.afriscope.fr/?buy=370239 generic floricot apcalis oral jelly in mayami http://www.afriscope.fr/?buy=625124 buy kamagra oral jelly online compare prices azithromycin in usa fluconazole cost