title: wwv_flow.debug() vs apex_debug.message()
body: <p>I've written a custom pl sql function for doing authorization. I know my function is being called by Apex's authorization hook. But I need to debug what's going on inside my authz function.</p>
  
  <p>I've successfully used wwv_flow.debug() before in debugging ajax calls I was making to stored procs. I could see my messages in apex's debug window.</p>
  
  <p>But while debugging my authorization function I cannot see my debug messages. I'm trying to use both wwv_flow.debug() and apex_debug.message()</p>
  
  <p>This brings me to 2 questions:</p>
  
  <ol>
  <li><p>What's the difference between wwv_flow.debug() and apex_debug.message()? When should each be used?</p></li>
  <li><p>Any ideas on why my debug messages aren't showing up during the call to my authorization function?</p></li>
  </ol>
  
  <p>Thanks.</p>
  
  <p>UPDATE: turns out my messages weren't showning, because the authorization was being cached and my pl/sql code wasn't being called, so I solved question #2. And I can see both my wwv_flow.debug() and apex_debug.messages(). Question #1 still stands though.</p>