Are there ang good tutorials on using the vlide debugging tools.

Are there ang good tutorials on using the vlide debugging tools.

stanovb
Advocate Advocate
2,907 Views
46 Replies
Message 1 of 47

Are there ang good tutorials on using the vlide debugging tools.

stanovb
Advocate
Advocate

 

I found this on here but are there other good video tutorials on how to use the vlide editor to debug your code?

 

https://www.youtube.com/watch?v=cBTQ0uHaI4Y

 

I have gotten two errors while trying to debug manually, but I could use some extra help.

 

One error was: ; error: bad argument type: streamp nil

bad argument type: streamp <value> A function requiring a file descriptor argument has been passed an argument of incorrect data type with the value noted in the error message. Usually a result of passing the close AutoLISP function a null or invalid argument.

Then while debugging this error i recieved this second error: bad argument type: fixnump: nil

bad argument type: fixnump: <value> A function requiring an integer argument has been passed an argument of incorrect data type with the value noted in the error message.

 

The problem is i dont know where the error is occurring. Is there a good tutorial that shows you how to pinpoint the error such as setting breakpoint on error & how to go about doing this?

 

I have two lisp routines that are working together so I'm not totally sure which file is causing the error. Someone showed me the trick of setting a variable throughout the code & then typing ! & then the variable name to see what it finally gets set 2 & it looks like now it is getting through the first routine & getting hung up on the second routine but I'm not sure why it is expecting an integer argument. I would post the files, but its quite a bit of code.

0 Likes
2,908 Views
46 Replies
Replies (46)
Message 41 of 47

stanovb
Advocate
Advocate

It seems like this area of cdgprojectstart should do it, but it doesnt.

 

stanovb_0-1660077565062.png

 

0 Likes
Message 42 of 47

stanovb
Advocate
Advocate

I'm still at this unfortunately. I got the Wendy's projects to work, but now I'm having issues with the McDonalds projects. It seems like it should be using the same logic except its using the PJT variable instead of PJWEN. I set an alert in the PJT condition area of my ProjectDirectories code, but it doesn't seem to be going there & I'm not sure why. As you can see in the video I set a watch list for PJT & it shows the correct value. If someone can take a look at this & give me some ideas I would love to hear it because I'm running out of things that I know to try. Its creating the folders, but its not copying the files. It doesn't seem to be going to the block of code that it needs to since my PJT alert is not displaying. I will upload the latest files, but I guess I will have to upload the client dcl again so you don't have to go searching for it. I'm only allowed 3 at a time.

stanovb_0-1660404645289.png

 

 
 
0 Likes
Message 43 of 47

stanovb
Advocate
Advocate

Hmm. it didn't seem to like my screencast. I will try it here. Also will upload the other dcl files. One for client & one for Wendys. That one seems to work.

 

SAO Startup 

 

0 Likes
Message 44 of 47

stanovb
Advocate
Advocate

Success! I moved my block of code before my other code that was working(the Wendy's code) & I got it to work. I think I found the error that is later in my program, there were some statements that I was trying to run outside of my progn statement. The flow was never getting to the block of code that I was trying to run for the Mcdonalds projects. Now if I can just figure out the issue with the dcl file.

0 Likes
Message 45 of 47

stanovb
Advocate
Advocate

I had to edit this part of the dcl file, but I do think this thing is fully functional now.

stanovb_0-1660519613129.png

I would like to figure out how to make the first dialog box come up without it looking like the first item is selected if possible, but that's minor compared to what I've been dealing with.

 

stanovb_1-1660519806833.png

 

0 Likes
Message 46 of 47

ВeekeeCZ
Consultant
Consultant

@stanovb wrote:

 

I would like to figure out how to make the first dialog box come up without it looking like the first item is selected if possible, but that's minor compared to what I've been dealing with.

 

stanovb_1-1660519806833.png

 


 

It's (set_tile key "") you need to set.

 

Probably something like this:

BeekeeCZ_0-1661333897411.png

 

 

0 Likes
Message 47 of 47

stanovb
Advocate
Advocate

That worked. I actually had that, but I had it here:

stanovb_0-1661341839062.png

instead of where you suggested.

0 Likes