Board index » jbuilder » How to create a "Write Access" breakpoint?
Daniel Mark
JBuilder Developer |
Daniel Mark
JBuilder Developer |
How to create a "Write Access" breakpoint?2003-08-15 10:46:59 PM jbuilder3 hello: Does anyone know how to create a "Write Access" breakpoint on a variable in JB9.0? I want to use this function to track where a variable is modified. thank you -Daniel |
Kevin Dean
Java Developer |
2003-08-15 11:51:33 PM
Re:How to create a "Write Access" breakpoint?
There is no such breakpoint capability in JBuilder. However, at the risk
of stating the obvious, why not wrap the variable in getter and setter methods and put a breakpoint in the setter method? -- Check out our latest white papers at www.datadevelopment.com/papers/index.html BladeNET Scores With Borland Enterprise Tools Team Development with JBuilder and Borland Enterprise Server Dolphin Data Development Ltd. www.datadevelopment.com/ "Daniel Mark" < XXXX@XXXXX.COM >wrote in message Quotehello: |
Daniel Mark
Java Developer |
2003-08-16 11:38:18 PM
Re:How to create a "Write Access" breakpoint?
Hello Kevin:
I tried your suggestion before, but I found JB9.0 cannot let me step into the getter and setter function. My code looks like this: public class ColorBar extends JComponent { .... int barWidth = ShowBarUtil.BARWIDTH; .... public int getBarWidth() { return barWidth; // I try to set breakpoint here, but JB9.0 cannot let me step into. } ... } public class ShowBarMouseInputAdapter extends MouseInputAdapter { ... public ShowBarMouseInputAdapter(ColorBar colorBar) { ... int width = colorBar.getBarWidth(); // I had used any format which didn't work too(int width =0; width = colorBar.getBarWidth()) ... } } I set a breakpoint in line "int width = colorBar.getBarWidth();", but JB9.0 cannot let me step into function getBarWidth()". In my guess, I think I might do something wrong, so JB9.0 disabled that function. thank you again. -Daniel {smallsort} |
Ken Warner
Java Developer |
2003-08-17 02:26:49 AM
Re:How to create a "Write Access" breakpoint?
I am just guessing that maybe the optimizer is just blowing that statement away
and that if you looked at the byte code, you might see that the whole method was missing and that barWidth was set in at unexpected time. Daniel Mark wrote: QuoteHello Kevin: |
Daniel Mark
Java Developer |
2003-08-17 03:33:22 AM
Re:How to create a "Write Access" breakpoint?
hello Ken:
May we disable the optimizer of JB9.0 if you suggestion was correct? thx -Daniel "Ken Warner" < XXXX@XXXXX.COM >wrote in message QuoteI am just guessing that maybe the optimizer is just blowing that statement |
Daniel Mark
Java Developer |
2003-08-18 11:56:25 AM
Re:How to create a "Write Access" breakpoint?
hello Kevin:
I agree with you. I think I might do sth wrong. thx "Kevin Dean" < XXXX@XXXXX.COM >wrote in message QuoteI must confess I've never seen that behaviour; I set breakpoints in |
Lori M Olson (TeamB)
Java Developer |
2003-08-19 11:00:59 PM
Re:How to create a "Write Access" breakpoint?
Daniel Mark wrote:
Quotehello: -- Regards, Lori Olson (TeamB) ------------ Save yourself, and everyone else, some time and search the newsgroups and the FAQ-O-Matic before posting your next question. Google Advanced Newsgroup Search www.google.ca/advanced_group_search Other Newsgroup Searches: www.borland.com/newsgroups/ngsearch.html Joi Ellis's FAQ-O-Matic: www.visi.com/~gyles19/fom-serve/cache/1.html |