Skip to main content
Participant
February 14, 2022
Question

CFBuilder and ACF docker. Source not found

  • February 14, 2022
  • 1 reply
  • 150 views

Anyone have any experience with ACF docker and CFBuilder debugger?

I can add the server that the docker container is running and the debugger is able to connect to the rds of the server when the debugger starts. The issue is that the debugger is unable to resolve the location of the source files. This leaves me with the error message "source file not found" when hitting breaks
The docker containers files live at "/app/file" but my local files that cfbuilder accesses are local with a different directory location. Is there a way to provide a debug mapping that will resolve this?

Any insight is appericated!

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    February 15, 2022

    Good question, Ryan, and I think I have the answer. 

     

    This seems similar to the problem one would have if CFB and cf were on different machines. And CFB has provision to map a) how the path to the code appears to you locally on the machine with CFB to b) how the path to the code appears  "on the server" (in your case that /app folder, in a container). 

     

    See the "debug mappings" setting in preferences, discussed further in step 11 of https://helpx.adobe.com/coldfusion/developing-applications/developing-cfml-applications/using-the-coldfusion-debugger/set-up-coldfusion-to-use-the-debugger.html.

     

    I also discuss that feature and a lot more in the chapter on CFB that I did for the cfwack books, which though dated and written for older CFB versions has still been helpful for folks. It's available at https://www.carehart.org/articles/CFWACK9-debugchapter.pdf

     

    Finally, I'll note that I'm writing this from my phone, so have not tested it with a container yet. But again it's a very good challenge, and if this does not work somehow, let us know and I'd dig in further. 

    /Charlie (troubleshooter, carehart. org)