Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: DXL Debugger
Topic Summary:
Created On: 23-Jun-2006 17:01
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Monday, June 26, 2006 12:49 PM

Answer:
No, there is no debugger for DXL.

I rely on print statements for debugging.

A simple technique I use is to declare a global variable called DEBUG and a function called debugPrint(string) to do your printing instead of calling print directly.
You can then turn debugging on/off by setting the variable. e.g,

bool DEBUG = true

void debugPrint(string msg)
{
if (DEBUG)
{
print msg "\n"
}
}


If you have a non-trivial data structure, especially using arrays and skips, then I recommend that you write a function that prints the data structure. Very useful.

You could also take a look at the function checkDXL() which allows you to perform a static check of DXL before you actually run it.
 23-Jun-2006 17:01
User is offline View Users Profile Print this message


Rafi Bin-Nun

Posts: 4
Joined: 28-Apr-2006

Does DXL have a debugger?
Report this to a Moderator Report this to a Moderator
 26-Jun-2006 09:37
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
No, there is no debugger for DXL.

I rely on print statements for debugging.

A simple technique I use is to declare a global variable called DEBUG and a function called debugPrint(string) to do your printing instead of calling print directly.
You can then turn debugging on/off by setting the variable. e.g,

bool DEBUG = true

void debugPrint(string msg)
{
if (DEBUG)
{
print msg "\n"
}
}


If you have a non-trivial data structure, especially using arrays and skips, then I recommend that you write a function that prints the data structure. Very useful.

You could also take a look at the function checkDXL() which allows you to perform a static check of DXL before you actually run it.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 26-Jun-2006 11:42
User is offline View Users Profile Print this message


Graham Stradling

Posts: 67
Joined: 19-Sep-2002

Mostly I rely on print statements as Tony mentions or writing info to a logfile.

There are some DXL trace statements as well though.

print dxlHere() "\n"

prints line number and which DXL file you are in - useful when using lots of includes.

startDXLTracing_("C:\\Your Dir\\Your File.txt")
stopDXLTracing_

Logs DXL actions to the file listed can be useful but uses a very verbose language so the file gets big fast! also slows execution down.

-------------------------
Graham Stradling,

Alcatel-Lucent.
Report this to a Moderator Report this to a Moderator
 26-Jun-2006 12:52
User is offline View Users Profile Print this message


Rafi Bin-Nun

Posts: 4
Joined: 28-Apr-2006

Thanks guys. I guess I was just amazed by how such large and complicated scripts can be built without a debugger - so I guess the answer is very carefully
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.