Skip to main content
Participant
March 15, 2016
Question

Error when trying to Attach To (Lightroom) Process in WinDBG

  • March 15, 2016
  • 1 reply
  • 1624 views

Hi,

I'm just setting this up, and I'm following the instructions in the SDK Guide, but it's not working as expected. If I try to Attach To Process in WinDBG, and choose lightroom.exe as the process, I get an error stating that it "Could not attach to process <xxxx>, NTSTATUS 0xC00000BB. The request is not supported." <xxxx> is the process number which changes every time LR is launched.

I have found that checking the box in WinDBG that tells it to attach non-invasively does eliminate the error, but then the debugger is unable to receive debug events from lightroom, which is pretty useless.

It's not like there's anything complicated, here. It's just run WinDBG, run LR, attach process. But, it doesn't work. Anyone know why?

Thanks!

This topic has been closed for replies.

1 reply

johnrellis
Legend
March 15, 2016

Many of us find it easier to log debug output to a file in the plugin folder. Then you can view it with your favorite editor, search it with "grep", users can send you debug logs, etc.  Here's how I use LrLogger to do that:

--[[----------------------------------------------------------------------------

public LrLogger log

The "log" is an LrLogger log file that by default writes to the file "debug.log"

in the current plugin directory.

------------------------------------------------------------------------------]]

local log = LrLogger (_PLUGIN.id)

    --[[ This apparently must be unique across all of Lightroom and plugins.]]


local logFilename = LrPathUtils.child (_PLUGIN.path, "debug.log")


log:enable (function (msg)

    local f = io.open (logFilename, "a")

    if f == nil then return end

    f:write (

        LrDate.timeToUserFormat (LrDate.currentTime (), "%y/%m/%d %H:%M:%S"),

        msg, Newline)

    f:close ()

    end)

Participant
March 17, 2016

Thanks, John. I saw that in the guide, but they also say it's possible to use WinDBG, which has advantages. So, I'm hoping they'll either explain it or admit that it doesn't work.

johnrellis
Legend
March 17, 2016

No Adobe employee has participated in this forum for many years.   You could try posting a problem report in the official Adobe feedback forum: Photoshop Lightroom | Photoshop Family Customer Community.  Even there, support for the SDK has been quite minimal for many years. But you never know, someone might respond there.  Or another developer here might respond with a recipe that works.