|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
NetBeans 6.5 BetaI just installed NetBeans 6.5 Beta on my Windows XP machine. I am interested in checking out the improved JavaScript funtionality. Do we have any online resources for it?
I am beginning to work with JQuery. NetBeans 6.5 beta ships with the Javascript libraries including jQuery. I have some questions on how to install them. 1. When I installed jQuery, NetBeans installed it in public\resources folder a Rails app (I am working with Rubyweblog application - thanks Chris) instead of the public\javascripts folder. Does anyone know why? The reason I ask is that public\javascripts seems to be the most logical place to install additional javascript libraries since, out of the box, rails installs prototype and scriptacolous in that folder anyway? Bharat |
|
|
Re: NetBeans 6.5 BetaHi Bharat,
bruparel wrote: > I just installed NetBeans 6.5 Beta on my Windows XP machine. I am interested > in checking out the improved JavaScript funtionality. Do we have any online > resources for it? > I am beginning to work with JQuery. NetBeans 6.5 beta ships with the > Javascript libraries including jQuery. I have some questions on how to > install them. > 1. When I installed jQuery, NetBeans installed it in public\resources > folder a Rails app (I am working with Rubyweblog application - thanks Chris) > instead of the public\javascripts folder. Does anyone know why? The reason > I ask is that public\javascripts seems to be the most logical place to > install additional javascript libraries since, out of the box, rails > installs prototype and scriptacolous in that folder anyway? > I asked the same thing on the nbajax mailing list a while ago: http://markmail.org/message/k2ni473euhjz5tez Reminds me that I haven't followed up on that. Not sure what's wrong with the format. Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NetBeans 6.5 BetaThis is a known issue, feel free to add your comments:
http://www.netbeans.org/issues/show_bug.cgi?id=139651 A simple workaround is just not to use the included JavaScript libraries and copy it yourself to the correct place. Then you should be able to use the JavaScript editing and debugging features. BTW, nbajax@... is the best place to discuss this - cc'ing. Petr On Aug 20, 2008, at 5:07 PM, bruparel wrote: > > I just installed NetBeans 6.5 Beta on my Windows XP machine. I am > interested > in checking out the improved JavaScript funtionality. Do we have > any online > resources for it? > I am beginning to work with JQuery. NetBeans 6.5 beta ships with the > Javascript libraries including jQuery. I have some questions on > how to > install them. > 1. When I installed jQuery, NetBeans installed it in public\resources > folder a Rails app (I am working with Rubyweblog application - > thanks Chris) > instead of the public\javascripts folder. Does anyone know why? > The reason > I ask is that public\javascripts seems to be the most logical place to > install additional javascript libraries since, out of the box, rails > installs prototype and scriptacolous in that folder anyway? > Bharat > -- > View this message in context: http://www.nabble.com/NetBeans-6.5- > Beta-tp19070005p19070005.html > Sent from the NetBeans Ruby - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NetBeans 6.5 BetaOn Aug 20, 2008, at 8:27 AM, Petr Jiricka wrote:
> This is a known issue, feel free to add your comments: > http://www.netbeans.org/issues/show_bug.cgi?id=139651 > > A simple workaround is just not to use the included JavaScript > libraries and copy it yourself to the correct place. Then you should > be able to use the JavaScript editing and debugging features. In particular, for editing purposes the JavaScript editor will find your own jQuery*.js in public/javascript and use that instead, so you can bypass the JavaScript Libraries functionality which I think has been more tested for Java Web projects than Rails projects. By placing it in public/javascript I think the normal Rails machinery will make things work at runtime as well. -- Tor --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NetBeans 6.5 BetaThanks everyone for your responses. Let us take baby steps. Javascript debugger is something that I have been anxiously waiting for and is a big reason for upgrading from NetBeans 6.1 to 6.5. I am not sure if you want me to report these to NBAjax forum? The reason I ask is that I am working with Ruby (and Rails off course) only IDE for awhile.
At this point, putting jQuery aside temporarily, I will be very happy if I could somehow launch the Javascript debugger in a simple HTML page shown below: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Script 2.2</title> <link href="../css/global.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> var name = prompt('What is your name?', ''); </script> </head> <body id="twoCol"> <div id="container"> <div id="banner"> </div>
<div id="contentWrap"> <div id="main"> <h1>Using a Variable, Part II</h1> <script type="text/javascript"> document.write('<p>Welcome ' + name + '</p>'); </script> </div> <div id="sidebar"> <h2>Script 2.1</h2> </div> </div> <div id="footer"><em>“Building Interactive Web Sites with JavaScript”</em></div> </div> </body> </html> This is from the Javascript - The Missing Manual Book by David Sawyer McFarland. I put a breakpoint at the following line: document.write('<p>Welcome ' + name + '</p>'); And I am following the directions on NetBeans wiki here: http://wiki.netbeans.org/JavaScriptDebuggerNetBeans6.5M1UserGuide#section-JavaScriptDebuggerNetBeans6.5M1UserGuide-NetBeansJavaScriptDebuggerTechnologyPreviewUserGuide The directions clearly state that you can debug individual HTML files containing Javascript code. Please see the following snippet of text from directions: ...... Starting Debugging Project You can use the Run:Debug Main Project action to debug the project. Start Debugging a file You can debug an individual.html file using the Debug File action in the file's popup menu. The debugger checks if the Firebug 1.1beta+ and NetBeans Firefox Extension have been installed in Firefox. If not found a message dialog is shown: ....... I have checked that both Firebug beta and NetBeans Firefox Extensions are installed in Firefox and that Firebug is enabled. But when I bring up the pop-up menu by right-clicking on the editor window for the code displayed above, I do not see a debug menu. I went to the main pull down debug menu which displays an option for debugging the currently open code which I have pasted above, but choosing it does not do anything. There is something that I am missing here. If one of you can try to replicate this simple setup preferably on Windows XP machine, I will really appreciate it. I use my Windows machine as a sort of test bed, since I am doing serious development on my Ubuntu machines using NetBeans 6.1. I have two Ubuntu laptops and will try NetBeans 6.5 next on them. Improved Javascript and CSS support makes NetBeans 6.5 a very compelling story. Let us try to get this right. I am not sure who to work with NB Ajax group. Should we not be inviting the people responsible for Javascript integration in Ruby only IDE to participate in beta testing discussions? Bharat p.s. I am editing this post to report the latest. This is very strange. I can do remote debugging, i.e., Debug menu -> Attach Debugger -> Type in the URL (file path) of the HTML file shown above and the debugger happily attaches to this file as a remote resource. I can then both operate it from NetBeans debugging toolbar and Firefox toolbar. The file is read-only though. As against that, I have tried everything I could to debug the file locally, but debugger simply refuses to be invoked. First there is no context menu for debugging when I right click within the editor window. Second, even if I choose the Debug menu option and Debug "file_name.html", nothing happens. |
|
|
Re: NetBeans 6.5 BetaI think nbajax@... is the right alias to approach with questions
about the javascript debugger. The JavaScript debugger is mostly language/framework agnostic except for a small project integration for each platform (Rails, Java EE etc). Hopefully somebody on the nbajax alias from the javascript debugger team can comment on this. -- Tor On Aug 20, 2008, at 3:45 PM, bruparel wrote: > > Thanks everyone for your responses. Let us take baby steps. > Javascript > debugger is something that I have been anxiously waiting for and is > a big > reason for upgrading from NetBeans 6.1 to 6.5. I am not sure if you > want me > to report these to NBAjax forum? The reason I ask is that I am > working with > Ruby (and Rails off course) only IDE for awhile. > > At this point, putting jQuery aside temporarily, I will be very > happy if I > could somehow launch the Javascript debugger in a simple HTML page > shown > below: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <title>Script 2.2</title> > <link href="../css/global.css" rel="stylesheet" type="text/css"> > <script type="text/javascript"> > var name = prompt('What is your name?', ''); > </script> > </head> > <body id="twoCol"> > <div id="container"> > <div id="banner"> ../images/banner.png http://www.sawmac.com/missing/js/ > </div> > <div id="contentWrap"> > <div id="main"> > <h1>Using a Variable, Part II</h1> > <script type="text/javascript"> > document.write('<p>Welcome ' + name + '</p>'); > </script> > </div> > <div id="sidebar"> > <h2>Script 2.1</h2> > </div> > </div> > <div id="footer"><em>“Building Interactive Web Sites with > JavaScript”</em></div> > </div> > </body> > </html> > > This is from the Javascript - The Missing Manual Book by David Sawyer > McFarland. > > I put a breakpoint at the following line: > > document.write('<p>Welcome ' + name + '</p>'); > > And I am following the directions on NetBeans wiki here: > > http://wiki.netbeans.org/JavaScriptDebuggerNetBeans6.5M1UserGuide#section-JavaScriptDebuggerNetBeans6.5M1UserGuide-NetBeansJavaScriptDebuggerTechnologyPreviewUserGuide > > The directions clearly state that you can debug individual HTML files > containing Javascript code. Please see the following snippet of > text from > directions: > > ...... > Starting Debugging > Project > You can use the Run:Debug Main Project action to debug the project. > > Start Debugging a file > You can debug an individual.html file using the Debug File action in > the > file's popup menu. > > The debugger checks if the Firebug 1.1beta+ and NetBeans Firefox > Extension > have been installed in Firefox. If not found a message dialog is > shown: > > ....... > > I have checked that both Firebug beta and NetBeans Firefox > Extensions are > installed in Firefox and that Firebug is enabled. But when I bring > up the > pop-up menu by right-clicking on the editor window for the code > displayed > above, I do not see a debug menu. I went to the main pull down > debug menu > which displays an option for debugging the currently open code which > I have > pasted above, but choosing it does not do anything. There is > something that > I am missing here. If one of you can try to replicate this simple > setup > preferably on Windows XP machine, I will really appreciate it. I > use my > Windows machine as a sort of test bed, since I am doing serious > development > on my Ubuntu machines using NetBeans 6.1. I have two Ubuntu laptops > and > will try NetBeans 6.5 next on them. Improved Javascript and CSS > support > makes NetBeans 6.5 a very compelling story. Let us try to get this > right. > I am not sure who to work with NB Ajax group. Should we not be > inviting the > people responsible for Javascript integration in Ruby only IDE to > participate in beta testing discussions? > Bharat > -- > View this message in context: http://www.nabble.com/NetBeans-6.5-Beta-tp19070005p19079460.html > Sent from the NetBeans Ruby - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NetBeans 6.5 BetaEmail sent as advised. Please see below:
I am using NetBeans beta 6.5 Ruby only IDE and am trying to work with the debugger unsuccessfully. The developers in charge of the NetBeans Ruby IDE suggested that I contact you. Please read the following thread to learn the details of this problem: http://www.nabble.com/NetBeans-6.5-Beta-td19070005.html#a19081858 Thanks. Bharat |
|
|
Re: NetBeans 6.5 BetaTor Norbye wrote:
> I think nbajax@... is the right alias I think you meant nbajax@.... Thought I should correct it here since the list in CC is not visible for forum users. Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [nbajax] Re: NetBeans 6.5 BetaSome of the UI has changed since the JS debugger user guide was last
updated. For the simple scenario below for single page debugging outside of a project, try this: 1. Debug->Attach Debugger 2. Select "Web Page Debugger (JavaScript)" from the list of debugger choices 3. Enter the URL, eg. file:///tmp/Foo.html, Click OK The page should load in the browser and a debug session will be launched. 4.To Load the source into the editor, click the pause button (Debug- >Pause) You should now be able to set breakpoints in the file which will be triggered when you reload the page. I think an issue has been filed to do #4 automatically. Hope this helps. - Mark On Aug 20, 2008, at 8:20 PM, Tor Norbye wrote: > I think nbajax@... is the right alias to approach with questions > about the javascript debugger. The JavaScript debugger is mostly > language/framework agnostic except for a small project integration > for each platform (Rails, Java EE etc). Hopefully somebody on the > nbajax alias from the javascript debugger team can comment on this. > > -- Tor > > On Aug 20, 2008, at 3:45 PM, bruparel wrote: > >> >> Thanks everyone for your responses. Let us take baby steps. >> Javascript >> debugger is something that I have been anxiously waiting for and is >> a big >> reason for upgrading from NetBeans 6.1 to 6.5. I am not sure if >> you want me >> to report these to NBAjax forum? The reason I ask is that I am >> working with >> Ruby (and Rails off course) only IDE for awhile. >> >> At this point, putting jQuery aside temporarily, I will be very >> happy if I >> could somehow launch the Javascript debugger in a simple HTML page >> shown >> below: >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" >> "http://www.w3.org/TR/html4/strict.dtd"> >> <html> >> <head> >> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> >> <title>Script 2.2</title> >> <link href="../css/global.css" rel="stylesheet" type="text/css"> >> <script type="text/javascript"> >> var name = prompt('What is your name?', ''); >> </script> >> </head> >> <body id="twoCol"> >> <div id="container"> >> <div id="banner"> ../images/banner.png http://www.sawmac.com/missing/js/ >> </div> >> <div id="contentWrap"> >> <div id="main"> >> <h1>Using a Variable, Part II</h1> >> <script type="text/javascript"> >> document.write('<p>Welcome ' + name + '</p>'); >> </script> >> </div> >> <div id="sidebar"> >> <h2>Script 2.1</h2> >> </div> >> </div> >> <div id="footer"><em>“Building Interactive Web Sites with >> JavaScript”</em></div> >> </div> >> </body> >> </html> >> >> This is from the Javascript - The Missing Manual Book by David Sawyer >> McFarland. >> >> I put a breakpoint at the following line: >> >> document.write('<p>Welcome ' + name + '</p>'); >> >> And I am following the directions on NetBeans wiki here: >> >> http://wiki.netbeans.org/JavaScriptDebuggerNetBeans6.5M1UserGuide#section-JavaScriptDebuggerNetBeans6.5M1UserGuide-NetBeansJavaScriptDebuggerTechnologyPreviewUserGuide >> >> The directions clearly state that you can debug individual HTML files >> containing Javascript code. Please see the following snippet of >> text from >> directions: >> >> ...... >> Starting Debugging >> Project >> You can use the Run:Debug Main Project action to debug the project. >> >> Start Debugging a file >> You can debug an individual.html file using the Debug File action >> in the >> file's popup menu. >> >> The debugger checks if the Firebug 1.1beta+ and NetBeans Firefox >> Extension >> have been installed in Firefox. If not found a message dialog is >> shown: >> >> ....... >> >> I have checked that both Firebug beta and NetBeans Firefox >> Extensions are >> installed in Firefox and that Firebug is enabled. But when I bring >> up the >> pop-up menu by right-clicking on the editor window for the code >> displayed >> above, I do not see a debug menu. I went to the main pull down >> debug menu >> which displays an option for debugging the currently open code >> which I have >> pasted above, but choosing it does not do anything. There is >> something that >> I am missing here. If one of you can try to replicate this simple >> setup >> preferably on Windows XP machine, I will really appreciate it. I >> use my >> Windows machine as a sort of test bed, since I am doing serious >> development >> on my Ubuntu machines using NetBeans 6.1. I have two Ubuntu >> laptops and >> will try NetBeans 6.5 next on them. Improved Javascript and CSS >> support >> makes NetBeans 6.5 a very compelling story. Let us try to get this >> right. >> I am not sure who to work with NB Ajax group. Should we not be >> inviting the >> people responsible for Javascript integration in Ruby only IDE to >> participate in beta testing discussions? >> Bharat >> -- >> View this message in context: http://www.nabble.com/NetBeans-6.5-Beta-tp19070005p19079460.html >> Sent from the NetBeans Ruby - Users mailing list archive at >> Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [nbajax] Re: NetBeans 6.5 BetaHello Mark,
Thanks for your response. Actually Remote Debugging is the only way that I could make it work, i.e., by doing Attach Debugger. Here is something that worked for me: 1. I opened the file that I wanted to debug in NetBeans editor and put a breakpoint where I wanted. NetBeans Javascript editor lets you do that - right click on the gutter. 2. I determined the URL path for this file by right-clicking on it and "Viewing" it in the browser. I copied the URL to the clipboard. 3. I opened the Attach Debugger window by following Debug->Attach Debugger. and selected "Web Page Debugger (JavaScript)" from the list of debugger choices. 4. I pasted the URL that I had copied and Clicked OK - the page got loaded in the browser and a debug session was launched - and the debugger stopped at the breakpoint that I had specified in step 1. 5. What is interesting is that now you have source code being displayed and debugging available both in NetBeans and Firebug! You can use either! Certainly not the thing for mere mortals like me! I hacked pretty much for a few hours before discovering all this which is NOT well-documented as you point out. Life in Javascript debugging should be easier than that. Do you know if there are any plans to "humanize" this behavior? Regards, Bharat |
|
|
Re: [nbajax] Re: NetBeans 6.5 Beta> I think an issue has been filed to do #4 automatically.
I just verified that this has been fixed in the post-beta dev build. In fact, once the debugger is attached, the source for any page that you navigate to in the browser is automatically loaded in the IDE until you stop the debugging session. - Mark On Aug 21, 2008, at 8:07 AM, Mark Dey wrote: > Some of the UI has changed since the JS debugger user guide was last > updated. > > For the simple scenario below for single page debugging outside of a > project, try this: > > 1. Debug->Attach Debugger > 2. Select "Web Page Debugger (JavaScript)" from the list of debugger > choices > 3. Enter the URL, eg. file:///tmp/Foo.html, Click OK > The page should load in the browser and a debug session will be > launched. > 4.To Load the source into the editor, click the pause button (Debug- > >Pause) > You should now be able to set breakpoints in the file which will be > triggered when you reload the page. > > I think an issue has been filed to do #4 automatically. > > Hope this helps. > > - Mark > > > On Aug 20, 2008, at 8:20 PM, Tor Norbye wrote: > >> I think nbajax@... is the right alias to approach with >> questions about the javascript debugger. The JavaScript debugger is >> mostly language/framework agnostic except for a small project >> integration for each platform (Rails, Java EE etc). Hopefully >> somebody on the nbajax alias from the javascript debugger team can >> comment on this. >> >> -- Tor >> >> On Aug 20, 2008, at 3:45 PM, bruparel wrote: >> >>> >>> Thanks everyone for your responses. Let us take baby steps. >>> Javascript >>> debugger is something that I have been anxiously waiting for and >>> is a big >>> reason for upgrading from NetBeans 6.1 to 6.5. I am not sure if >>> you want me >>> to report these to NBAjax forum? The reason I ask is that I am >>> working with >>> Ruby (and Rails off course) only IDE for awhile. >>> >>> At this point, putting jQuery aside temporarily, I will be very >>> happy if I >>> could somehow launch the Javascript debugger in a simple HTML page >>> shown >>> below: >>> >>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" >>> "http://www.w3.org/TR/html4/strict.dtd"> >>> <html> >>> <head> >>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> >>> <title>Script 2.2</title> >>> <link href="../css/global.css" rel="stylesheet" type="text/css"> >>> <script type="text/javascript"> >>> var name = prompt('What is your name?', ''); >>> </script> >>> </head> >>> <body id="twoCol"> >>> <div id="container"> >>> <div id="banner"> ../images/banner.png http://www.sawmac.com/missing/js/ >>> </div> >>> <div id="contentWrap"> >>> <div id="main"> >>> <h1>Using a Variable, Part II</h1> >>> <script type="text/javascript"> >>> document.write('<p>Welcome ' + name + '</p>'); >>> </script> >>> </div> >>> <div id="sidebar"> >>> <h2>Script 2.1</h2> >>> </div> >>> </div> >>> <div id="footer"><em>“Building Interactive Web Sites with >>> JavaScript”</em></div> >>> </div> >>> </body> >>> </html> >>> >>> This is from the Javascript - The Missing Manual Book by David >>> Sawyer >>> McFarland. >>> >>> I put a breakpoint at the following line: >>> >>> document.write('<p>Welcome ' + name + '</p>'); >>> >>> And I am following the directions on NetBeans wiki here: >>> >>> http://wiki.netbeans.org/JavaScriptDebuggerNetBeans6.5M1UserGuide#section-JavaScriptDebuggerNetBeans6.5M1UserGuide-NetBeansJavaScriptDebuggerTechnologyPreviewUserGuide >>> >>> The directions clearly state that you can debug individual HTML >>> files >>> containing Javascript code. Please see the following snippet of >>> text from >>> directions: >>> >>> ...... >>> Starting Debugging >>> Project >>> You can use the Run:Debug Main Project action to debug the project. >>> >>> Start Debugging a file >>> You can debug an individual.html file using the Debug File action >>> in the >>> file's popup menu. >>> >>> The debugger checks if the Firebug 1.1beta+ and NetBeans Firefox >>> Extension >>> have been installed in Firefox. If not found a message dialog is >>> shown: >>> >>> ....... >>> >>> I have checked that both Firebug beta and NetBeans Firefox >>> Extensions are >>> installed in Firefox and that Firebug is enabled. But when I >>> bring up the >>> pop-up menu by right-clicking on the editor window for the code >>> displayed >>> above, I do not see a debug menu. I went to the main pull down >>> debug menu >>> which displays an option for debugging the currently open code >>> which I have >>> pasted above, but choosing it does not do anything. There is >>> something that >>> I am missing here. If one of you can try to replicate this simple >>> setup >>> preferably on Windows XP machine, I will really appreciate it. I >>> use my >>> Windows machine as a sort of test bed, since I am doing serious >>> development >>> on my Ubuntu machines using NetBeans 6.1. I have two Ubuntu >>> laptops and >>> will try NetBeans 6.5 next on them. Improved Javascript and CSS >>> support >>> makes NetBeans 6.5 a very compelling story. Let us try to get >>> this right. >>> I am not sure who to work with NB Ajax group. Should we not be >>> inviting the >>> people responsible for Javascript integration in Ruby only IDE to >>> participate in beta testing discussions? >>> Bharat >>> -- >>> View this message in context: http://www.nabble.com/NetBeans-6.5-Beta-tp19070005p19079460.html >>> Sent from the NetBeans Ruby - Users mailing list archive at >>> Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@... >>> For additional commands, e-mail: users-help@... >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |