Debug window change proposal

View: New views
3 Messages — Rating Filter:   Alert me  

Debug window change proposal

by marun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In line 558 in Linb Studio there is:
--------------8<---------------------
557.   if(curId =='debug'){ 
558.       linb.dom.doForm('launch.php', {key:'launch', para: _.serialize({content:str, fileName: self.fileName, pack:self.pack})} );
559.
560.       return false;
--------------8<---------------------
I propose changing it to something like this:
--------------8<---------------------
557.     if(curId =='debug'){ 
558.       var newWindow = window.open('','');
559.       newWindow.document.write(str);
560.       newWindow.document.close();
561.//     linb.dom.doForm('launch.php', {key:'launch', para: _.serialize({content:str, fileName: self.fileName, pack:self.pack})} );
662.
563.       return false;
--------------8<---------------------
Changing to this method give a possibility to inform IDE when some changes appear in tested app. For example it can be useful for creating generic debug console for application.
When testing app only downloads linb.js and UI.js files. So it is loaded faster
There is no name space collision because everything what was created in IDE is accessed with parent.*. Making this change will also require changing linbPath on line 41 from "../../../" to "../".

Re: Debug window change proposal

by linb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have this version too, but only server version can stimulate "compile" -- select certain files(according to name space) and copy them to release path , or pack them to one html file(stand alone mode).

Re: Debug window change proposal

by marun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yeah, JavaScript isn't the best at dealing with files.