4 ms·
> Why can't I debug a function without restarting my program? This was/is true in C# for 32 bit programs. Being able to code with live data is really productiv
by Gibbon1 8y ago
> Why can't I debug a function without restarting my program?
This was/is true in C# for 32 bit programs. Being able to code with live data is really productive. Live unit testing also would be a big win.
- alkonaut 8y agoC#/.NET 64 bit does this too but there were always limitations such as not being able to reload the code if method parameters were changed, closures were modified etc.
- reitanqild 8y agoOn Java you can often do most of this using either JRebel or DCEVM.
- Gibbon1 8y agoWhen I saw how C#/.net could do this I found myself annoyed because you could in theory do with with even C. There isn't any reason you couldn't monkey patch a new function in a running C program. At least for a pure function. I used to work with a OG (with a pocket protector no less) who did this when debugging assembly by pasting op-codes using a debug monitor.
- pcdoodle 8y agoThis is also true for VB6, add lines of code in real time and resume stepping through. Also you can hover your mouse on variables during debugging to see their contents.