Rocket U2 | UniVerse & UniData

 View Only

 How to find program line from PORT.STATUS "layer stack" hex output

Nelson Schroth's profile image
Nelson Schroth posted 08-03-2021 17:01
Is there a way to relate the spot this subroutine is stuck (source line number?) from the layer stack output.  example:
Layer type....... Program name.................... Address...
BASIC run machine MC.CUST.MATCHCODE 0x00000BE4
BASIC run machine CAT.REQUEST 0x00001134
BASIC run machine CatRequest 0x0000074E
BASIC run machine WW.METHOD 0x0000084C
BASIC run machine WW.OBJECT 0x00000508
BASIC run machine SPIDER 0x0000443E

Having a problem with this subroutine getting stuck for hours.

Appreciate any ideas.

Nelson
Manu Fernandes's profile image
PARTNER Manu Fernandes
Hi
Use VLIST progfile MC.CUST.MATCHCODE
Then the first column is the line and the second is the hex adress.

I hope this help
Leslie Sherlock Hewkin's profile image
Leslie Sherlock Hewkin
I had this exact issue years ago at TP, I wrote a routine I called spy, it would do a port.status with a layer.stack and locate the last program in use, if it was a standard sub-routine it would get the calling main program, then it would vlist the program and out put the source code line, you also had the option to view the code around it, don't think I've still got the code but I'll have a look round.
Nelson Schroth's profile image
Nelson Schroth
Thanks Manu,
The VLIST was the ticket...identified the code where it was hanging up.  Have made changes to eliminate the problem going forward.
Nelson
Nancy Plante's profile image
PARTNER Nancy Plante
Thank you, Gentlemen.  I used your commands and methods to solve a problem with an infinite looping routine.  This helped immensely!!  Glad to find that you truly can teach old dogs new tricks.

Nancy