NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Can't tell which is the current line for the debugger

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Fri Aug 13, 2010 6:07 am    Post subject: Can't tell which is the current line for the debugger Reply with quote

I'm running NetBeans on a Mac doing PHP development.

I know the debugger is working because I can view variable values. And I know that I can set breakpoints and step through code because the line number in the call stack changes when I step.

But there is no indication on the screen where the debugger currently is. The current text line is light blue when I'm editing. But the current debugger line has no visual cue.

I understand the line the debugger is ready to execute is supposed to be green. But I see no indication at all, and I can't find where to set it.

Thanks so much!
Marty
Back to top
Mark Wade
Posted via mailing list.





PostPosted: Fri Aug 13, 2010 11:32 am    Post subject: Can't tell which is the current line for the debugger Reply with quote

On Aug 13, 2010, at 2:08 AM, mschechtman wrote:

Quote:
I'm running NetBeans on a Mac doing PHP development.

I know the debugger is working because I can view variable values.
And I know that I can set breakpoints and step through code because
the line number in the call stack changes when I step.

But there is no indication on the screen where the debugger
currently is. The current text line is light blue when I'm
editing. But the current debugger line has no visual cue.

I understand the line the debugger is ready to execute is supposed
to be green. But I see no indication at all, and I can't find where
to set it.

Thanks so much!
Marty


I don't know why the highlighting isn't working for you but there are
settings in NetBeans -> Preferences -> Fonts and Colors -> Annotations

The problem is there are quite a few entries that look as if they
would apply. I'm not sure which one, or more than one, need to be set
or why you need to set it.

Mark Wade
address-removed
Back to top
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Fri Aug 13, 2010 5:01 pm    Post subject: Reply with quote

Hi Mark,

Thanks very much for your response.

I can't find anything appropriate in annotations. It seems to me current debug line should be an entry in the highlights section. That's where Highlight Caret Row is. That's the entry for highlighting the current row for the editor.

Preferences -> Fonts & Colors -> Highlighting

But I can't find anything appropriate for Highlight Debug Line

Marty
Back to top
Mark Wade
Posted via mailing list.





PostPosted: Fri Aug 13, 2010 7:10 pm    Post subject: Can't tell which is the current line for the debugger Reply with quote

On Aug 13, 2010, at 1:01 PM, mschechtman wrote:

Quote:
I can't find anything appropriate in annotations.



It's there, on my Mac running 6.8 anyway. The two entries you're
looking for are "Current Program Counter" and the second "Program
Counter and Breakpoint" entry, the first entry with that title refers
to an invalid breakpoint.

I verified that here by changing their values, they both default to
RGB 189,230,170.

But there are others:

There are five entries for "Current Program Counter in Expression"
which all default to 233,255,230 which on my display is almost white.
I don't do PHP but maybe this applies to that? Try changing those to
something unmistakeable and step through the debugger.

Also there are:

"Current Program Counter and other thread"
"Current Program Counter and other thread with a breakpoint"

Then there are a bunch toward the bottom of the list. The entry
titles are duplicated and only distinguishable by their icons.

The answer lies there.

Mark Wade
address-removed
Back to top
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Fri Aug 13, 2010 9:37 pm    Post subject: Reply with quote

Thanks again, Mark!

I will study your suggestions.

I really appreciate your help!

Marty
Back to top
complicity



Joined: 14 Aug 2010
Posts: 6

PostPosted: Sat Aug 14, 2010 12:44 am    Post subject: Re: Can't tell which is the current line for the debugger Reply with quote

mschechtman wrote:
I'm running NetBeans on a Mac doing PHP development.

I know the debugger is working because I can view variable values. And I know that I can set breakpoints and step through code because the line number in the call stack changes when I step.

But there is no indication on the screen where the debugger currently is. The current text line is light blue when I'm editing. But the current debugger line has no visual cue.

I understand the line the debugger is ready to execute is supposed to be green. But I see no indication at all, and I can't find where to set it.

Thanks so much!
Marty


I'm having this exact same problem with the php debugger.
I'm running NetBeans IDE 6.9 (Build 201006101454) on Windows 7 Home premium 64 bit.

Using 32 bit java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing).

I have tried playing around with the colours and that doesnt seem to have made any difference. See screenshot
Back to top
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Sat Aug 14, 2010 3:26 pm    Post subject: Reply with quote

Well Mark,

I don't even have Program Counter and Breakpoint on my viewscope. I bet that is the source of my problem.

Here are the choices I have under Annotations related to Current

Current Program Counter
Current Program Counter In Expression
Current Program Counter In Expression + Conditional Breakpoint
Current Program Counter In Expression + Conditional Breakpoint
Current Program Counter In Expression + Disabled Breakpoint
Current Program Counter In Expression + Disabled Conditional Breakpoint

I set them all to Wave Underlined: Yellow. Still no indication of which line the debugger is working on.

I changed the Breakpoint annotation to Wave Underlined: Yellow too. And the text is underlined with a wavy yellow line, just as advertised. So if one of those Current Program options was the one I need, it too should have been underlined.

Perhaps I should try to find NetBeans 6.8.

Thanks,
Marty
Back to top
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Sat Aug 14, 2010 5:08 pm    Post subject: Reply with quote

New information about the missing debugger highlight!

Turns out that I'm debugging remotely. I'm using path mapping to connect the remote file system to mine.

I set a breakpoint on a line in a file on my machine and execution stops there. But what is being reported in the call stack is the file on the remote machine! Makes sense really, that's where execution is.

Doesn't explain why the current debug line isn't being highlighted, but it is new information.

Marty
Back to top
Mark Wade
Posted via mailing list.





PostPosted: Sat Aug 14, 2010 5:15 pm    Post subject: Can't tell which is the current line for the debugger Reply with quote

On Aug 14, 2010, at 11:26 AM, mschechtman wrote:
Quote:
Well Mark,

I don't even have Program Counter and Breakpoint on my viewscope. I bet that is the source of my problem.

Here are the choices I have under Annotations related to Current

Current Program Counter
Current Program Counter In Expression
Current Program Counter In Expression + Conditional Breakpoint
Current Program Counter In Expression + Conditional Breakpoint
Current Program Counter In Expression + Disabled Breakpoint
Current Program Counter In Expression + Disabled Conditional Breakpoint

I set them all to Wave Underlined: Yellow. Still no indication of which line the debugger is working on.

I changed the Breakpoint annotation to Wave Underlined: Yellow too. And the text is underlined with a wavy yellow line, just as advertised. So if one of those Current Program options was the one I need, it too should have been underlined.

Perhaps I should try to find NetBeans 6.8.

Thanks,
Marty




Funny you should have just posted this and my feed from the mailing list has been very erratic, sometimes I don't get anything for days. Anyway, this all made me curious so I just finished downloading MAMP and installing it following this link:


http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html#installMamp


It said I had to download, compile and install xdebug but I found that wasn't necessary, it was already installed with MAMP, but I did have to configure php.ini. After going through that I can see how to hook up the existing installations of php apache and mysql that ship with macosx.


But, anyway, the debugging works here. The highlighting works as I step through the code.


All I can offer now is my setup:


Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.5.0_24; Java HotSpot(TM) Client VM 1.5.0_24-149
System: Mac OS X version 10.5.8 running on ppc; MacRoman; en_US (nb)


The NetBeans archives are here:


http://www.netbeans.info/downloads/dev.php


and 6.8 release is here:


http://netbeans.org/downloads/6.8/index.html


I don't know how to get the version from php, I try to access it and get "Permission Denied" but the directory structure says it is 5.3


Two more links in case they can be of any use:


http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html#installMamp
http://netbeans.org/kb/docs/php/debugging.html


If you do get it working with 6.8, let us know. You can have multiple versions installed and in use on a machine.



Mark Wade
address-removed ([email]address-removed[/email])
Back to top
complicity



Joined: 14 Aug 2010
Posts: 6

PostPosted: Sat Aug 14, 2010 8:29 pm    Post subject: Reply with quote

My issue might be different to the original poster's, as the debugger doesnt stop at breakpoints for me, I have posted a seperate topic here.

Anyhow I tried to download the 6.8 version of netbeans and it hasn't resolved my issue at all.
You can get your php version by running php -v in the cmd prompt...
Back to top
Mark Wade
Posted via mailing list.





PostPosted: Sun Aug 15, 2010 12:05 am    Post subject: Can't tell which is the current line for the debugger Reply with quote

On Aug 14, 2010, at 4:29 PM, complicity wrote:
Quote:
My issue might be different to the original poster's, as the debugger doesnt stop at breakpoints for me, I have posted a seperate topic here (http://forums.netbeans.org/viewtopic.php?t=30582).

Anyhow I tried to download the 6.8 version of netbeans and it hasn't resolved my issue at all.
You can get your php version by running php -v in the cmd prompt...



People have posted having problems with java version 1.6.0_21 and fixed them by reverting to 1.6.0_20.


Quote:
You can get your php version by running php -v in the cmd prompt...


That works for the php installation at /usr/bin/php but the one installed with MAMP at /Applications/MAMP/bin/php5.3/bin/php yields "Permission Denied".


Now that I just typed that I checked and Applications/MAMP/bin/php5.3/bin/php execute permissions are not set. I set the permissions and it works. I'm hitting the send button anyway.

Mark Wade
address-removed ([email]address-removed[/email])
Back to top
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Sun Aug 15, 2010 1:47 am    Post subject: Reply with quote

Guess what. The issue I'm having is a known NetBeans bug.

I'm having the problem because I'm trying to do remote debugging. For me, the website I'm debugging against is running FreeBSD, and I'm running NetBeans on a Mac. The very definition of remote debugging. They're communicating just fine during the debug session in that I can set breakpoints and step through code.

But there is no visual cue as to what line the debugger is ready to execute.

The issue has already been reported as a NetBeans bug here and here and maybe elsewhere.

I'm going to try older versions and see if I can get this resolved for myself.

Mark, you have gone above and beyond to help me with this. I want you to know how much I appreciate it!

Marty
Back to top
complicity



Joined: 14 Aug 2010
Posts: 6

PostPosted: Sun Aug 15, 2010 12:46 pm    Post subject: Reply with quote

Ok I managed to resolve my issue, see here

Basically I was being stupid and I hadn't correctly configured the path mapping, although I have no idea why this meant that the debugger only half worked...
Back to top
mschechtman



Joined: 13 Aug 2010
Posts: 8

PostPosted: Sat Aug 21, 2010 3:11 pm    Post subject: Reply with quote

I solved my problem. It turns out not to be a NetBeans problem but a path mapping issue.

See a full discussion here

Marty
Back to top
Gelisiliy



Joined: 30 Sep 2010
Posts: 3

PostPosted: Thu Sep 30, 2010 2:40 am    Post subject: Reply with quote

These (Buy WOW Gold)abilities and bonuses are only available by choosing a specific tree. Each tree awards its own unique active ability and passives when chosen(RuneScape Gold). The passive bonuses range from flat percentage increases, for example a 20% increase to Fire damage for Fire mages or spell range increases for casters, to more interesting passives such as (RS Gold)the passive Rage regeneration of the former Anger Management talent for Arms warriors, Dual-Wield Specialization for Fury warriors and Combat rogues, or the ability to (RuneScape Gold)dual-wield for Enhancement shaman.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo