New topic: 

RB 2009 v5 trouble debugging

<http://forums.realsoftware.com/viewtopic.php?t=31362>

       Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic         Author  
Message       Jym           Post subject: RB 2009 v5 trouble debuggingPosted: 
Tue Dec 01, 2009 9:33 pm                        
Joined: Sat Oct 01, 2005 5:19 pm
Posts: 2106              I couldn't connect to my database for debugging and 
couldn't figure out why.  After looking in the directory after the debugger 
started I see the debugging app is creating it's own directory.  

db.databasefile = GetFolderItem("profiles") 

  So I'm guessing an absolute path needs to be setup for debugging?  Please 
tell me there's another way of doing it as I like to transfer the project 
between computers.   
                            Top               npalardy           Post subject: 
Re: RB 2009 v5 trouble debuggingPosted: Tue Dec 01, 2009 10:21 pm               
         
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5454
Location: Canada, Alberta, Near Red Deer              Platform ?     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top               jefftullin           Post 
subject: Re: RB 2009 v5 trouble debuggingPosted: Wed Dec 02, 2009 2:01 am       
                 
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 1031              Recent upgrader?

RB has been doing this for (about) 8 releases.

You can either 'run paused' and copy the profiles file into the debugging 
folder, or recode your app so that it looks in a specific place for the files.
That way, it works in debug or release.

You could have an #if debug  so that it looks in one place for debug, and one 
for release.

And the best way to handle it is to put these 'support files' into either 
Application Support folders (Application Data under Windows) , or 
<user>/Documents/<my app> if the file is a document that you want to be more 
visible.   
                            Top               Jym           Post subject: Re: 
RB 2009 v5 trouble debuggingPosted: Wed Dec 02, 2009 8:55 am                    
    
Joined: Sat Oct 01, 2005 5:19 pm
Posts: 2106              On a wing and a prayer I tried this and it worked

db.databasefile = GetFolderItem("..\profiles") 

so then when it's time to Build I'll just search for ..\ and delete them all   
                            Top               timhare           Post subject: 
Re: RB 2009 v5 trouble debuggingPosted: Wed Dec 02, 2009 12:14 pm               
         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 6867
Location: Portland, OR  USA              You can use 
Code:#if debugBuild then
  db.databasefile = GetFolderItem("..\profiles")
#else
  db.databasefile = GetFolderItem("profiles")
#endif

   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to