Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When debugging, I want a noise when I get an error
Message
De
02/02/2005 16:40:54
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
02/02/2005 16:31:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00983171
Message ID:
00983234
Vues:
15
What about adding "SET STEP ON" after the bell?

>Am still unclear here. I did the following:
>
>
ON ERROR DoSomePrg()
>...
>PROCEDURE DoSomePrg
>   ?? CHR(7)
>ENDPROC
>
>I do get the bell sound when I get an error, but execution continues. I'd like to be suspended like normal.
>
>(With my previous setting of
ON ERROR
I would get the error notification, and then the debugger would come up, suspended at the line of code with the error. This is desirable, and I would like to still have this behavior.).
>
>Thanks,
>
>Jim
>
>
>>ON ERROR DoSomePRG
>>
>>in your error PRG, you issue:
>>
>>?? CHR(7)
>>
>>to sound a bell tone preceded of followed with whatever other code you want. If that is not enough, there are ways to play a WAV file. Just let us know if CHR(7) does not work for you.
>>
>>>Is there a way to create an audible notification when you get a bug in the development environment?
>>>
>>>I have a routine that runs for quite a while (20 minutes or so). While it is running, I move on to other things. If/when a bug occurs, I'd like to hear some audible notification, so that I don't have to keep checking all the time.
>>>
>>>I haven't gotten anything to work with ON ERROR (I thought I could call MESSAGEBOX), as I can't get the program to halt on the error line.
>>>
>>>Any suggestions, or am I barking up the wrong tree?
>>>
>>>Thanks,
>>>
>>>Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform