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!
|
|
Debugging .net extension
Posted: 20 Aug 07 2:59 PM
|
Does anyone know of a method for attaching the Visual Studio .net debugger to your .net extensions when being run through SLX? I've got a .net extension that I need to debug and I can't figure out what process to attach to! |
|
|
|
Re: Debugging .net extension
Posted: 20 Aug 07 3:08 PM
|
Here's a step by step to debug your SalesLogix .NET Extension.
- Create your .NET Extension and compile it in debug mode
- Add it to the Extension Manager and add whatever scripts to launch it
- While the project is open in VS, go to "Debug" and then "Attach to Process".
- Find "SalesLogix" on the list of running processes. Select it and then use the "Select" button to ensure that you've chosen to debug "Managed".
- Set a break-point in VS in your code
- Run the script that uses the extension and it will stop at your break-point.
Make sense? |
|
|
|
Re: Debugging .net extension
Posted: 20 Aug 07 3:23 PM
|
I was missing the selection of 'managed' code when I attached to the saleslogix.exe process. that did the trick, thanks Ryan!
Adam |
|
|
|
Re: Debugging .net extension
Posted: 19 Nov 07 1:06 AM
|
Hi Ryan, Thanks for your support. i have complied the .Net Extension in Debug mode and tried to add the "Sales Logix" from the list of running processes. But the problem is, i am not able to find the "SalesLogix" in the list of running processes under "Attach to Prcoess", i tried checking the checkboxes below for 'All the Users' and for 'All the sessions', but the problem remains same. Could you please guide me to make the "Sales Logix" available in the list of running processes so that i can selelct and attach and try to debug the .Net Extension.
Thanks. |
|
|
|
Re: Debugging .net extension
Posted: 20 Nov 07 6:51 AM
|
Sam, Sometimes the name can be deceving as the title displayed can reflect the open window. Open up a running instance of SalesLogix, click on the account or contact form and look for the title 'Sage SalesLogix - {contact name } ' , also make sure that in the attach to you have Managed Code selected or you will not be able to debug your extension.
Mark |
|
|
|