December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to rumbu | > Get used to it :) Unfortunately, DMD is not emitting the best debug information. The program flow is correct, but the line info is not, that's why the execution step will not be triggered in the real location of the source code.
>
> The simplest example is this:
>
> import std.stdio;
>
> void foo(int x)
> {
> if (x > 0) //step 1, correct
> {
> writeln("bigger"); //step 2, correct
> }
> else
> {
> writeln("lower"); //step 3, wrong
> }
> }
>
> int main(string[] argv)
> {
> foo(20); //breakpoint with step in
> return 0;
> }
>
> If you really want to confuse the debugger, write some asserts or contracts here and there and your program will be impossible to debug :)
So, do you have any information if there will be a fix to this? It is really hard (at least for me) to work with a language which doesn't feature a working debugger...
|
December 31, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote:
> On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote:
>> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote:
>>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote:
>>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:
>>>>> Any idea what i am doing wrong?
>>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>>>>
>>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code...
>>>
>>> I work more or less lying on a futon. Desks are so cheesy...
>>
>> Anarchism is comfy...
>
> when I'm tired with the conformism I just let my head go on the pillow and I sleep...
> (snoring)
>
> Even if I dont't think that you have won:
> https://youtu.be/Uj_7kTwRMKE?t=2m35s
thumb up.
I dont think that you have won. Monotheism is a 2000 year old failure.
Many god haven't solidarized us...only one failed.
|
January 05, 2016 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: > On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: >> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: >>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: >>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: >>>>> Any idea what i am doing wrong? >>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8 >>>> >>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code... >>> >>> I work more or less lying on a futon. Desks are so cheesy... >> >> Anarchism is comfy... > > when I'm tired with the conformism I just let my head go on the pillow and I sleep... > (snoring) > > Even if I dont't think that you have won: > https://youtu.be/Uj_7kTwRMKE?t=2m35s https://www.youtube.com/watch?v=YgSPaXgAdzE I'm a loser baby, so why don't you leave me ? You luv losers ? And you don't leave them ? Nurse syndrom. |
January 15, 2016 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Tuesday, 5 January 2016 at 23:52:05 UTC, Basile B. wrote: > On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: >> On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: >>> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: >>>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: >>>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: >>>>>> Any idea what i am doing wrong? >>>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8 >>>>> >>>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code... >>>> >>>> I work more or less lying on a futon. Desks are so cheesy... >>> >>> Anarchism is comfy... >> >> when I'm tired with the conformism I just let my head go on the pillow and I sleep... >> (snoring) >> >> Even if I dont't think that you have won: >> https://youtu.be/Uj_7kTwRMKE?t=2m35s > > https://www.youtube.com/watch?v=YgSPaXgAdzE > > I'm a loser baby, so why don't you leave me ? > You luv losers ? And you don't leave them ? > Nurse syndrom. to the MI6: It's a english daddy boy who tought me what is a papirosn https://en.wikipedia.org/wiki/Belomorkanal TIP to englishmen: you should learn how to behave in France. |
January 15, 2016 Fuck the brits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Friday, 15 January 2016 at 22:16:09 UTC, Basile B. wrote:
> On Tuesday, 5 January 2016 at 23:52:05 UTC, Basile B. wrote:
>> On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote:
>>> On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote:
>>>> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote:
>>>>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote:
>>>>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:
>>>>>>> Any idea what i am doing wrong?
>>>>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>>>>>>
>>>>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code...
>>>>>
>>>>> I work more or less lying on a futon. Desks are so cheesy...
>>>>
>>>> Anarchism is comfy...
>>>
>>> when I'm tired with the conformism I just let my head go on the pillow and I sleep...
>>> (snoring)
>>>
>>> Even if I dont't think that you have won:
>>> https://youtu.be/Uj_7kTwRMKE?t=2m35s
>>
>> https://www.youtube.com/watch?v=YgSPaXgAdzE
>>
>> I'm a loser baby, so why don't you leave me ?
>> You luv losers ? And you don't leave them ?
>> Nurse syndrom.
>
> to the MI6:
>
> It's a english daddy boy who tought me what is a papirosn
>
> https://en.wikipedia.org/wiki/Belomorkanal
>
> TIP to englishmen: you should learn how to behave in France.
Like the whole world can see today, you have took an anwesome decision in 1948. Well managed. very clever I'd say...
|
Copyright © 1999-2021 by the D Language Foundation