in reply to [SOLVED] Default DB connection details not found: Plack::Test & Dancer2

Hi

If it works from cli but not from another thing, then the configuration file isn't being loaded at all

or the wrong/empty one is loaded

Too bad that stupid error message doesn't give you the full path of the "config" file its using

So the question is How do you dump/debug dancer configuration?

kinda related Re: Dancer 2 yaml config file (is a hash of hashes ... key collision/clobbering is a common pitfall)

  • Comment on Re: Default DB connection details not found: Plack::Test & Dancer2 (dump debug dancer configuration)

Replies are listed 'Best First'.
Re^2: Default DB connection details not found: Plack::Test & Dancer2 (dump debug dancer configuration)
by stevieb (Canon) on Sep 30, 2016 at 22:15 UTC

    Thanks anonymonk,

    I'm going to use my IDE (intellij) to follow through the whole code-flow process for both a standard run and a test run, and figure out exactly why this is happening (probably tonight or tomorrow morning). This'll allow me to pinpoint the areas I need to pepper code with print and possibly caller() statements to figure out exactly what config is being used (or attempting to be used).