Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why DEBUGGING does not work? (GREEN X sign shows)?

Status
Not open for further replies.

DVirus

Programmer
Oct 5, 2002
8
TR
Hi,
I have 2 problems on D6 ent..
First, I can't do any DEBUGGING if create new APPlication!
Older created ones works normally, but new ones, I can set
Breakpoints as RED in editor.. But when RUN the program,
they became GREEN and X signed, so debugger does not stop
on that points... How to fix this?? I never changed any
options about it.. where can i check to fix this??

Second, any kind of DBGrid does not work on BDE or MySQL!
Some of tables and queries does not work with DBGrids..
Older tables created on the app are working, but when
I add new table or query, any of DBGrid does not get
data from their DATASOURCEs.. I know there's data because
I can get DataSource.RecordCount and DataSet.FieldByName
values... But I can't see anything on the GRIDs...
When the tables/queries OPENed or CLOSEd, GRIDs never
change their state and view while program RUNNING!
If I ACTIVE table/query on Designer, GRIDS shows the records
but while the program running, nothing happens...

I also tried stay ACTIVE tables, and RUN the program,
GRID shows the records but if CLOSE/FILTER or any change
on that table/query is not affect the GRID!!!
Very strange!! But it's just like this...

Where must I check/change to fix these problems?
If any replies, it would be appreciated..
Thanks..

DV..
dvirus3175@hotmail.com
 
Go Project | Project options | Compiler. In the Debug section, ensure that Debug information, Local symbols, and Reference info are all checked. If they're not, check 'em, check the Default box down the bottom of the dialog, and click OK.

Also ensure that your app does not contain a {$D-} or {$L-} directive.

As to the DBGrids: you say it works with older tables, but not newer. Carefully compare Object Inspector values for an old table versus a new table, and see if you can spot a difference. If those tables are attached to different TDatabase objects or TSession objects or aliases, compare those, too. -- Doug Burbidge mailto:dougburbidge@yahoo.com
 
Thanks for the reply,
but I checked all of them,
Debugging parameters as same as you said, but still
doesn't work.. It's RED at the beginning, but after RUN,
they comes GREEN and X signed type.. I think it means
Debugging is disabled.. I also check other options that
you don't tell (such as Use Debug DCUs and Assertions etc..)
but still doesn't work...
Now, the only way for debugging is RUN > ADD BREAKPOINT > MODULE BREAKPOINT and choosing any used BPL... But it's not work on my .PAS files...

In the grids, I checked them via COPY/PASTEing old tables.. But new created tables are still not return any data to grids..
I think some of Delphi .pas files broken and need to
re-install them.. I'll try it now... But it has happened
before and it had not fixed even after re-installed..

By the way, today, I checked FILEMON (file activity monitor from sysinternals.com) and there's no any unusual activity
(i mean wrong path/file using) while compiling...
I didn't understand why it happened...
Yesterday, everyting was normal, it happened suddenly...
and now, not working properly...
I will suspect on myself :) but there's no any programming mistake that i made... It's completely Delphi's fault...

Thanks anyway, i'll try to re-install delphi...

 
I just solved the problem...
If these occurs for someone, do not use DATA MODULES :)
I was using DM on my project.. And I moved all the
tables and queries on to the main form...
All the problems have been fixed...

I tried especially, new tables created on that DM
was not send datas to GRIDs while in Runtime...
I deleted DM and everyting is normal now :)

Thanks...
 
That's really bizarre! [bugeyed]

I was working on a project at home this weekend and had the same problems with the DBGrid not showing anything! Couldn't figure out what was wrong with it for the life of me! I use DataModules at work all the time (I think it's cleaner - all data in one spot) - so I did it at home and didn't even consider it as the DBGrid problem.

Does anyone have a clue what's up with this? Thanks!

Leslie
landrews@metrocourt.state.nm.us

SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
 
DV,

As for the problem you're having with the breakpoints turning green and crossed in the Code Editor gutter margin, notice that you can only set a breakpoint on a line that has a small corresponding blue spot in it's gutter margin. If you place a breakpoint on a line which doesn't have this blue spot, then the line will be highlighted green and a cross will be placed in the red breakpoint.

Clive

P.S. I think you need to compile at least once to be able to see these blue spots!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top