Dumping memory of a locked thread?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
radgeRayden
Prole
Posts: 29
Joined: Sun Jul 27, 2014 6:49 pm
Location: Brasil
Contact:

Dumping memory of a locked thread?

Post by radgeRayden »

Say one of my threads gets caught up in an infinite loop. I know this because I expected it to callback but it never did after a few seconds. All I want is to retrieve a table containing some important data to understand what was going on. Is there a way to do this? It's all hypothetical so please tell me if there's a flaw in my mental model.
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Dumping memory of a locked thread?

Post by pgimeno »

No. At best you can insert some code that dumps that data in some place you can access later, like the console or a log file. Using something like GDB would mean you need to be familiar with LuaJIT's internals, and even then, it would be a huge pain to decode the full contents of the table without some kind of specialized debugger to interpret it.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 29 guests