Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP methods you miss
Message
De
16/05/2013 12:16:41
 
 
À
16/05/2013 12:04:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01574038
Message ID:
01574106
Vues:
68
Understood. Though I imagine one could walk the stack and (through trial and error) determine the location of the reference to the variable portion which moves around from time to time, and then set a breakpoint there (instead of or) as well.

Still, perhaps the better solution is just switch to Java and be done with it. :-) Open source, copyleft protected: http://openjdk.java.net/

Just what the doctor ordered.

Best regards,
Rick C. Hodgin


>Don't think it can work. In managed code the address of the variable is not static.
>
>>There are machine-level (CPU itself) debug facilities which allow you to break when a particular memory address is read or written to. If you can obtain the literal machine address of managed variable, then you would be able to attach a debugger to the running instance of a .NET VM, and then break the VM itself whenever that memory address changes (using debugger facilities), or is read or written to if you use the kernel debugger.
>>
>>The debugger doesn't have to be the Visual Studio Debugger. Any debugger will do, including your own custom app which creates an HWND for your managed app to send messages to about its physical hardware address, for example.
>>
>>Lots of options. Just depends on how big of a deal it is.
>>
>>
>>>>Didn't know that was a limitation of .net.
>>>>Okay... Hmmm... How about creating a class with operator overrides, replacing the
>>>>instance variable with the class, and breaking there?
>>>Possible. You could achieve the same by using a property and breaking on the
>>>setter - but either implies having to change production code for testing......
>>
>>Am very surprised .NET doesn't offer that. Seems a standard developer tool (hence it being included directly in silicon within the i386 and later definitions).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform