17 Jul 18:45
Re: [nbajax] Would like a better idea of how javascript debugging is meant to work with templates (e.g. erb/rhtml)
From: Sandip Chitale <Sandip.Chitale@...>
Subject: Re: [nbajax] Would like a better idea of how javascript debugging is meant to work with templates (e.g. erb/rhtml)
Newsgroups: gmane.comp.java.netbeans.modules.ruby.devel
Date: 2008-07-17 16:45:14 GMT
Expires: This article expires on 2008-07-31
Subject: Re: [nbajax] Would like a better idea of how javascript debugging is meant to work with templates (e.g. erb/rhtml)
Newsgroups: gmane.comp.java.netbeans.modules.ruby.devel
Date: 2008-07-17 16:45:14 GMT
Expires: This article expires on 2008-07-31
Anthony Richardson wrote: > Cross posted to nbajax@... <mailto:nbajax@...> and > dev@... <mailto:dev@...> > > I wanted to get an idea of what the expected level of functionality > the javascript debugger is going to be capable of offering when > debugging webpages generated from templates. > > I'm using Ruby on Rails and all responses returned to the browser are > constructed from erb files (although other templating systems are also > available). Basically a erb file is a normal HTML file with support > for embedded ruby code. Rails constructs the responses by merging many > erb files to create the resulting response to the user. Often the same > erb file is called many times with different parameters for > constructing things like lists etc.. > > Is it expected that developers will be able to place breakpoints in > these erb files in any location and have the debugger resolve the > locations of the many source files that may have contributed to the > resulting page the user is currently viewing? (I'm not sure that this > is even possible without injecting debugging specific markup into the > served page as the page construction is a lossy process like compilation). In 6.5 it is only possible to set the breakpoints in html and javascript files as long as the URL as seen by the browser can be mapped to the file in the project by simple lookup of the path part of the URL relative to the source roots in the project. You will be able to set the breakpoints in the HTML that the browser sees in terms of URL. To load this html you need to go to the Windows:Debugging:Sources window, select the URL and use "Go to Source" action to load it in the editor tab - the(Continue reading)
RSS Feed