Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 29, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Setting up Debug Enviroment
Marc Johnson
Posts: 252
 
Setting up Debug EnviromentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 10:01 AM
fiogf49gjkf0d
A bit off topic, sorry. I've been working with a tree view and it has a nasty loop. I know if I can get it into debug (Vis Studio2003) I'll be able to figure it out but I cannot get the debugger to activate. I've set my client to debug "On Error" and put a "break" statement in my script right before the While statement that is looping. If I comment out the While the script does not fail. If it's active it'll lock up the SLX client (CPU at 50%).

If anyone can help me figure out how to setup my debug enviroment I'd appreciate it greatly. After that I should be able to figure out my problem.

Thanks!

Marc A. Johnson
Network Administrator
Optimum Solutions, Inc.
615-329-2313 x2240 office
615-329-4448 fax
mjohnson@optimum-solutions.com
www.optimum-solutions.com
Your only payroll, HR and time & attendance solution.
[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Setting up Debug EnviromentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 10:03 AM
fiogf49gjkf0d
Marc,

You can try two things.. Change the SLX option to Debug on everything and wait for it to pass through.. or..

Can't you use the "Attach to process" from inside VS and attach to the SLX process before you generate the error then generate the error and see what happens..?

[Reply][Quote]
Marc Johnson
Posts: 252
 
Re: Setting up Debug EnviromentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 10:09 AM
fiogf49gjkf0d
Setting to debug on everything got the debugger to open. I was finally able to see that i didn't set one of my variables correctly. I thought Option Explicit was supposed to prevent undefined variables from being used?

BTW, once this error was overcome the "On Error" started working. So there isn't a problem with my debug enviroment. Thanks!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Setting up Debug EnviromentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 12:39 PM
fiogf49gjkf0d
Try adding a "stop" statement ("break" won't trigger the debugger to fire). When your stop statement is reached it shoudl automatically fire up the debugger as long as it finds one located on your machine.

Also, if the look is locking up the client, I would guess that there is no condition for it to end the loop (ie: an endless loop). Post the code here and we can take a look with you if you want.
[Reply][Quote]
Marc Johnson
Posts: 252
 
Re: Setting up Debug EnviromentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 06 12:57 PM
fiogf49gjkf0d
Ryan,

Thanks for the "stop" tip. I'm not a coder by trade so I sometimes forget my syntax. As for the code, I found that it was a non-defined variable problem. I was executing a SQL statment and storing it in strSQL, but I defined srtSQL. So my statement went to limbo. My While statment was looking for an EoF for a non-existant record set, thus the loop.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/29/2024 6:02:46 PM