1. Tracing Euphoria 1.5 for/next loops

Hi Euphorians!.

I'm trying to debug a program that contains for/next loops.
I put a "with" trace statement at the beginning of the program, a
"trace(1)" just before the "for", and a "trace(0)" after the "next"

When I try to follow the program sequence by hitting the down-arrow, I'm
able of running once over the loop, but after reaching the "next", the
program continues without any more tracing.

has anyone else experienced this?.

I run Euphoria 1.5, under Win95 on a 486/100 PC.

An example of this using "delay.e" from Jacques Deschemes:

-- code begins here
--------------------------------------------------------
with trace
-- Test program to try debugging for/next loops
include delay.e
atom iTime
integer Seconds
iTime = time()
trace(1)
for i = 1 to 120 do
    Seconds = i
        delay(1)
    ? Seconds
end for
trace(0)
? time() - iTime
-- Code ends here ------------------------------------------------------

new topic     » topic index » view message » categorize

2. Re: Tracing Euphoria 1.5 for/next loops

> When I try to follow the program sequence by hitting the down-arrow, I'm
> able of running once over the loop, but after reaching the "next", the
> program continues without any more tracing.
> has anyone else experienced this?.

        Yes, and that might be because it is SUPPOSED TO HAPPEN!!

        [ENTER] continues the program one line at a time.
        [DOWN] continues the program until it reaches the next line!!

        SO you should have pressed ENTER, not the down arrow unless you
want Euphoria to continue until it reaches the next line.

        Please read your documention first, or at least try to notice
things like 'enter' what is on top of the screen in trace mode
before you come here for these kind of questions.

        I don't want to be unfriendly or something or do anything that might
 give you feeling you you should stop posting, just want you to know
that you should think and explore first. Some people might think
you're lame, i don't, i do not judge on these kind of things nor do
they effect me, and as you've notice i'll help you solve your
problem. However some people on this list can get a bit insulting on
things that really don't matter at all, be warned.
(Ask the guy from Lord Generic Production about this and he will tell
you some people can be careless in what they say and he himself is a
good example of someone who does care what other people think.

===================
Ralf Nieuwenhuijsen,
nieuwen at xs4all.nl
===================

new topic     » goto parent     » topic index » view message » categorize

3. Re: Tracing Euphoria 1.5 for/next loops

------ =_NextPart_000_01BC69AC.D1F33680
Content-Transfer-Encoding: quoted-printable

Ralph:
Thanks for your help.
>Please read your documention first, or at least try to notice >things =
like 'enter' what is on top of the screen in trace mode >before you come =
here for these kind of questions.
Of couse I do. However, my mother tongue is not english, so sometimes I =
do not fully understand some things. In this case, I undestood that =
hitting enter was for tracing inside procedures and functions only, not =
for native instructions.

>I don't want to be unfriendly or something or do anything that might
>give you feeling you you should stop posting, just want you to know
>that you should think and explore first. Some people might think
>you're lame, i don't, i do not judge on these kind of things nor do
>they effect me, and as you've notice i'll help you solve your
>problem..

Okay. I'm here from some month ago, but I've only been visible a couple =
of times. I'm a registered user of Euphoria, and I understand this is an =
open forum for Euphoria programmers. So I realize when an user has some =
kind of trouble (even simple things like the one you answered), this is =
the place to ask.
* However some people on this list can get a bit insulting on=20
* >things that really don't matter at all, be warned

It's not my intention to insult anyone's intelligence. I don't like to =
be insulted , either-.
Best regards.
Jesus.
=00
------ =_NextPart_000_01BC69AC.D1F33680

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu