Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Debugging &
Thu, Oct 5 2017 9:33 AMPermanent Link

erickengelke

Avatar


Hi, there are a few things I would love to see changed in EWB:

1. Debugging/Source Code line numbers for Chrome/Firefox.  This isn't a hard thing and would make the product so much easier to use/debug.

2. In dialog boxes, hitting Esc closes the window.  Grumpy users complain about this because they lose their work, so I have to keep adding code to deal with Close handling... could this behaviour be made a checkbox?  EscClose = True as a default for compatibility with existing systems?

3. There is a small bug I've noticed.  If you declare a dataset but forget to define any elements as string or whatever, then add the dataset to a Grid... it fails to work.  But then it always fails when you try to add that same dataset to that same grid, even when you correct the dataset, until you save/close and reload the app.  I hope that explanation is good enough.

4. I'm still totally enthusiastic about EWB and use it daily!  It's great!

Erick
http://www.erickengelke.com
Thu, Oct 5 2017 11:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<< 1. Debugging/Source Code line numbers for Chrome/Firefox.  This isn't a hard thing and would make the product so much easier to use/debug. >>

I've looked into this pretty extensively, and while source maps seem simple at first, they're pretty involved and require a lot of code in the emitter portion of the compiler.  Given other commitments (2.07), this is just going to have to wait.

<< 2. In dialog boxes, hitting Esc closes the window.  Grumpy users complain about this because they lose their work, so I have to keep adding code to deal with Close handling... could this behaviour be made a checkbox?  EscClose = True as a default for compatibility with existing systems? >>

I'll add this as an enhancement.

<< 3. There is a small bug I've noticed.  If you declare a dataset but forget to define any elements as string or whatever, then add the dataset to a Grid... it fails to work.  But then it always fails when you try to add that same dataset to that same grid, even when you correct the dataset, until you save/close and reload the app.  I hope that explanation is good enough. >>

So, you're trying to set the DataSet property for a TGrid, but the TDataSet instance doesn't have any columns defined ?

<< 4. I'm still totally enthusiastic about EWB and use it daily!  It's great! >>

Thanks. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Oct 5 2017 2:35 PMPermanent Link

erickengelke

Avatar

Tim Young [Elevate Software] wrote:

Erick,

<< 1. Debugging/Source Code line numbers for Chrome/Firefox.  This isn't a hard thing and would make the product so much easier to use/debug. >>

> I've looked into this pretty extensively, and while source maps seem simple at first, they're pretty
> involved and require a lot of code in the emitter portion of the compiler.  Given other commitments (2.07),
> this is just going to have to wait.

Okay, how about a simpler request: the ability to create a debug .JS file which has EWB line
numbers on it.  Then when I'm debugging I'll have a clue without having to hand convert Pascal
to JS?

<< 2. In dialog boxes, hitting Esc closes the window.  Grumpy users complain about this because they lose their work, so I have to keep adding code to deal with Close handling... could this behaviour be made a checkbox?  EscClose = True as a default for compatibility with existing systems? >>

> I'll add this as an enhancement.

<< 3. There is a small bug I've noticed.  If you declare a dataset but forget to define any elements as string or whatever, then add the dataset to a Grid... it fails to work.  But then it always fails when you try to add that same dataset to that same grid, even when you correct the dataset, until you save/close and reload the app.  I hope that explanation is good enough. >>

>So, you're trying to set the DataSet property for a TGrid, but the TDataSet instance doesn't have any columns defined ?

Almost, it has columns defined, but I'm an idiot and always forget to set the datatype of at least one of the TDataSet columns to string, int, etc.   Once it gets the expected error, you have to close all before you
can nicely add the dataset to the TGrid.


<< 4. I'm still totally enthusiastic about EWB and use it daily!  It's great! >>

> Thanks. Smile

You're welcome.

Erick
http://www.erickengelke.com
Fri, Oct 6 2017 4:25 AMPermanent Link

Matthew Jones

erickengelke wrote:

>  Then when I'm debugging I'll have a clue without having to hand convert Pascal
> to JS?

I find it generally quite easy to work out where things are happening in the Chrome debugger. The function names are all there, and the objects etc. Occasionally I will want to set a breakpoint and I just assign some unique string to a variable and then I can search for that ("hello mum").
I guess it could get better, but it seems to work fine for me as is.

--

Matthew Jones
Image