Re: Static typing ain't so bad, after all...




On Aug 22, 2006, at 9:10 AM, Just Another Victim of the Ambient Morality wrote:


"Chris Gehlker" <canyonrat@xxxxxxx> wrote in message
news:C1967BEB-2E20-488B-9977-5EA3B9CB1AC3@xxxxxxxxxx

On Aug 22, 2006, at 5:30 AM, Just Another Victim of the Ambient Morality
wrote:

Has anyone noticed this? How do you deal with this issue?

I must be missing something. i can't see why you didn't just ask the
debugger by typing <parametername>.class

That's a good question...
I wasn't looking at the source at runtime...

Aha, I interpreted "I was debugging..." as "I was running the debugger"

I could have run it and
stuck a breakpoint but that's when the problem occured to me. In a
hypothetical case, the code might be hard to execute. Indeed, if you're
looking at someone else's code then you might have no clue as to how to
execute it.

True, but I don't see how static typing would help in this case.

You could write some code to call it directly but that
wouldn't give you insight into how the method is used.

But there are times when you can figure out how to call the code that calls the code without starting from the very beginning.

In my case, the debugger is really slow and it would have taken quite a
while to reach the breakpoint...

True, the debugger is sometimes very slow when executing up to a breakpoint. Sometimes I fall back on print statements.

---
Neither a man nor a crowd nor a nation can be trusted to act humanely or to think sanely under the influence of a great fear.

-Bertrand Russell, philosopher, mathematician, author, Nobel laureate (1872-1970)



.



Relevant Pages

  • RE: AppVerifier breakpoint when closing VB6 application
    ... You can run!avrf debugger extension and follow the troubleshooting steps ... handle checks are enabled, Appverifier keeps track of open, close and any ... I am getting 2 breakpoint exceptions from AppVerifier upon closing my ... ModLoad: 00400000 004d5000 MyApp.exe ...
    (microsoft.public.win32.programmer.tools)
  • Re: [RFC] hwbkpt: Hardware breakpoints (was Kwatch)
    ... The debugger should always eat the trap. ... agent who asked for the breakpoint and who is responsible for responding to ... some question about what value the debug exception handler should write ... For most other machines this will be a no-op. ...
    (Linux-Kernel)
  • Re: not again: hibernate OpenSessionInViewInterceptor lazyinitialization exception
    ... a problem in Hibernate, but setting a breakpoint in Hibernate can help ... Debugger as last resort rather than debugger as first resort: ... :-) The main apps though are quite complex, ...
    (comp.lang.java.programmer)
  • Re: Delphi 4 Pro vs Standard
    ... I had a problem with the Delphi 3 debugger in Windows 7. ... When I put a breakpoint at the offending line of code, it reported a correct read of the data and the procedure finished normally. ... Another weird thing is that the first time through, the debugger showed the contents of the received file, but on the second pass, where it failed, the debugger seemed not to work. ... Of course, I could just install my D4 Pro on their computer and I'm sure the Borland cops won't suddenly appear with search warrants and Uzis, but it would be nice to have the ability to maintain this application, using their computer and software. ...
    (comp.lang.pascal.delphi.misc)
  • Re: VxWorks Source level debugging
    ... This sounds like a path mapping not properly set. ... the source file to set the breakpoint!). ... but I can't find the right place to add my source files so ... that the debugger can find them. ...
    (comp.os.vxworks)