RQ Debugger IDE is developed  for working with big or middle Rapid-Q Basic and  FreeBasic. projects where text navigations is the problem. 
 

1. It's beta version! No warranties!.. as is .. etc.
2. The Form designer is not working. Just the object templates can be inserted. You can edit existing templates.

I use this editor some months and many bugs was fixed, but many - not.
Please e-mail me bug reports and suggestions.

With best regards
Andrew Shelkovenko. diakin@narod.ru
Jan 2005.

Special  thanks for Danny Jackson for CodeEdit semi-visual editor.
http://groups.yahoo.com/group/rapidq_works/files/CodeEdit/CodeEdit21.zip

IDE works only on 1024х768 screen resolution !!

 

Main Form




Main features:

- multiwindow
- named bookmarks
- Directories
You need to set directories for RapidQ compiler, libraries etc.
Use "Options"-"Directories" menu item. Directories will be saved in *.prj files.

- HiLighting
You can disable HiLighting. Use "Options"-"Editor"
Disabling is not working in this version!!!

- Components bar
You can insert component template in cursor position using Components bar.
Component templates are stored in "Templates" subdirectory.
You can edit existing templates.

- Compile and Run
Use "Run"-"Compile and Run" menu item to ..hmm.. Compile source file and Run program.
Current (opened in window) file will be compiled.
Other menu item in "Run" menu are not working.

You can compile RapidQ sources - to exe, and Free Basic sources - to exe and dll files.
Use "FB" button to compile exe and "DLL" button - to compile dll.

- Subs\Function list
Use "View"-"Subroutine list" to View Subroutine and objects list.

----------------------------------------------------------------------------------------------------

Also - see popup menu on source code editor
---------
"Debug (LogEdit)" - (for RapidQ only)
Add debug string that print selected variable name (with index parsing) and value in
LogEdit (if "dim LogEdit as QRichEdit" present in your program ;))))

for example
1. Select EditMenuItemPop(8).Caption in source text.
2. Use "Debug (LogEdit)" menu item
String will be added

call AddClrString ("25:EditMenuItemPop("+str$(8)+"Caption )="+(EditMenuItemPop(8).Caption ), clred, LogEdit)
You can change clRed to other color.
--------
"Debug (print)"
The same, but print debug string in console.
Use it if there are not LogEdit in your program.
--------
"Add Sub"
(Selected text is SubName)

Add sub declaration in "declarations section" (or to begin of text) and add sub template to end of text.
"Declarations section" is next string
'--- Declarations ---
(You can insert it in any line as you wish.)
Sub declaration will be added in next line after this.
Template is
'***************
Sub SubName

end sub

-------
"GoTo Declaration"
"GoTo Sub/Function"
not working
-------
"Open File"
Try to open file using current selection in text editor as file name
----------------------------------------------------

  Options

Editor.  You can change font and disable HiLighting.
Directories. You need to set directories for RapidQ  and FreeBasic compiler, libraries etc.
Use "Options"-"Directories" menu item. Directories will be saved in *.prj files.
Other tabs not working.

  Projects

You can save list of Windows (opened files) and bookmarks as Project.
List of projects saved in RQDB.ini file
Project's data saved in *.prj files in "Projects" directory
When RQ Debugger IDE is running, it loads all Windows (and other settings) from last project.
It automatically open last Window and set cursor to saved last position.

You can create new project for working with another Windows (opened files) and bookmarks collection.
Use "File"-"New Project". In opened window set Project name and choose main module from filelist.
Main module is any file with source code and .bas or .rqb extension.
Then you need to save project. "File"-"Save Project"
Or "Save Project as.." to save current Windows/bookmarks collection.

To choose other project use "Projects" menu item.
Project containts:

 Windows

You can open 32 files and switch to one using "Windows" menu item.
You can switch to last window (with saving cursor's position) using "LastW" menu item.

Note!!
When you switch windows, RQIDE refresh Subroutine list. In this time some menu items are
disabled.

Bookmarks
You can set 32 bookmarks in every window (opened file)
Use "Bookmarks" menu item. You can "Add", "Delete", "Set", "Sort" bookmarks.
"Add" - adding current line in editor to bookmarks list.
"Delete" - deleting current bookmark from bookmarks list.
"Set" - replace current bookmark by current line.
"Sort" - sort bookmarks by line number.
Sorting have bug ;(

You can switch to last bookmark using "LastBM" menu item.

Navigation
See bookmarks above
Also

Step-By-Step Debugger. (For Rapid-Q Basic only!)


=== How it works. ==================================
See StepByStepDebug.bas demo.

Four additional files creates:
$DbgDisplay.bas - source file with debugger subs
$SrcDisplay.bas - debugged sub\function source for hilighting current operator.
$~OpLen.dat - Length of operators for hilighting in $SrcDisplay.bas
$~OpPos.dat - Position of operators for hilighting in $SrcDisplay.bas

Debugger subs.

RQDebug("~$#SubName.varname",varname,0)
^^sub name ^^ var name
Outputs like
print "SubName.varname"=varname

=== How to use debugger
1. Select (in source editor window) variable that you want to watch .
2. Click on "AddWatch" button in debug panel (or in popup menu)
3. Also do that for all variables that you need to watch...
4. Then click on "Compile and run with debug" button in debug panel
5. Your program will be compiled and runned. When debugged sub\function will be called - debug window
will appears.
6. Use "Trace" button for step by step debugging and "Continue" button for running.


=== Known bugs and Limitations:
1. RQDebug() not inserted correctly in some cases.
2. Some bugs with LineNumber