-
Oct 1st, 2021, 07:10 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Why is my subroutine not being called ?
Hi,
I have to re-write an application that's been running for years because it takes as its input text that I've copied from a website, the particular website has recently changed the format with which it displays its output.
So... I believe that I've re-formatted the data to present the data to my original subroutine in the original format.
When I call the subroutine, everything just stops. I can't find where the... (I don't know what to call it) ...the place where the code is at... usually the line is coloured yellow and there's a little yellow arrow in the margin, I can't find that and the whole of the code and the Watch page are 'fogged' out. Nothing responds to mouse clicks.
I've had something similar before but usually discovered what I've done wrong, but this time the called subroutine hasn't been touched, the data is in the ListOfString in the same format... It just stops.
Nothing from intellisence
At the moment I've not included any code because, for now, I'm hoping for some general pointers as to where to look.
Poppa
Last edited by Poppa Mintin; Oct 1st, 2021 at 07:14 AM.
Along with the sunshine there has to be a little rain sometime.
-
Oct 1st, 2021, 07:59 AM
#2
Re: Why is my subroutine not being called ?
You won't get the line highlighted in yellow unless the debugger is in break mode, which it apparently isn't. Set a break point earlier so that the debugger does break, then then step through the code by line and you should hopefully be able to find out where things go wrong.
-
Oct 5th, 2021, 05:45 PM
#3
Thread Starter
PowerPoster
Re: Why is my subroutine not being called ?
Originally Posted by jmcilhinney
You won't get the line highlighted in yellow unless the debugger is in break mode, which it apparently isn't. Set a break point earlier so that the debugger does break, then then step through the code by line and you should hopefully be able to find out where things go wrong.
Thanks John,
At the time I thought you were right, I did that and it all stepped through, but I must've already done something by the time I received your answer.
Now however, I have the same problem, I have definitely got a breakpoint set, the process stopped at the breakpoint, I single stepped down to my subroutine... Single stepped to call the subroutine... nothing, all the code goes 'foggy', the watch pane goes 'foggy' and the step buttons all go blank. The only response is to the 'Stop debugging' button.
Poppa
Along with the sunshine there has to be a little rain sometime.
-
Oct 5th, 2021, 05:54 PM
#4
Re: Why is my subroutine not being called ?
Originally Posted by Poppa Mintin
Thanks John,
At the time I thought you were right, I did that and it all stepped through, but I must've already done something by the time I received your answer.
Now however, I have the same problem, I have definitely got a breakpoint set, the process stopped at the breakpoint, I single stepped down to my subroutine... Single stepped to call the subroutine... nothing, all the code goes 'foggy', the watch pane goes 'foggy' and the step buttons all go blank. The only response is to the 'Stop debugging' button.
Poppa
A picture might help at this point. I have my suspicions about what is happening but I don't want to make a guess.
-
Oct 5th, 2021, 07:37 PM
#5
Thread Starter
PowerPoster
Re: Why is my subroutine not being called ?
Originally Posted by Niya
A picture might help at this point. I have my suspicions about what is happening but I don't want to make a guess.
That's weird, I ran the app., it stopped at the breakpoint, I took a screenshot... stepped up to where the next step would call my subroutine, I took a screenshot... stepped into the sub' and this time it just went strait into the sub !
Now I am confused.
Ah ! I tried that again, and it went strait into the sub' again. I still don't know why it does it, but I've found when it does it... It goes wrong when I step with the 'Step-Over' rather than with the 'Step-Into'.
I usually use step-over to save stepping through other sub's or functions. (Must be tired)
So... I reckon that's sorted out my problem, lesson learned.
Poppa.
Along with the sunshine there has to be a little rain sometime.
-
Oct 5th, 2021, 07:52 PM
#6
Re: [RESOLVED] Why is my subroutine not being called ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|