1. Dawn Browneyes
  2. PowerBuilder
  3. Friday, 12 August 2022 23:26 PM UTC

I am looking for the pbtrace  log location.

I turn pbtrace ON and a dialog box title:  Database Trace 
Output will be written to:  c:\dawn logs\mytrace.log 
Configuration Options
Log File Name:  c:\dawn logs\mytrace.log 

I change name to:    c:\dawn logs\mytraceAug2022.log  


I can't find where that name (c:\dawn logs\mytraceAug2022.log  ) is stored. 

I looked in the PB12.5  documentation and it states it is in the registry.

But that new name is not there anywhere.    It is not in the pb.ini file either. 

I used to find it in the registry with other versions.

I manually looked in the registry and check with code:

string ls

RegistryGet("HKEY_CURRENT_USER\SOFTWARE\Sybase\PowerBuilder\12.5\DBTrace", "LogFileName", RegSTring!, ls)


Nada.  Where is that file name stored now?


PB 12.5 help (it isn't in Infomaker or PowerBuilder):

The selections made in the Database Trace dialog box are saved to the registry of the machine from which the database connections are made. Windows registry settings for the database trace utility configuration are stored under the HKEY_CURRENT_USER\Software\Sybase\InfoMaker\12.5\
key. Registry strings under this key are: ShowBindings, FetchBuffers, ShowDBINames, Timing, SumTiming, LogFileName, and ShowDialog. Except for the LogFileName string to which you can assign a full file name for the trace output file, all strings can be set to either 0 or 1.

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Saturday, 13 August 2022 04:40 AM UTC
  2. PowerBuilder
  3. # 1



I set my sqlca.DBMS to include TRACE and ran my app.

This is where my "hello.log" is stored in the registry (using pb2022):



  1. John Fauss
  2. Saturday, 13 August 2022 16:37 PM UTC
Some companies have group policies in place that prevent changes to the Windows Registry. Could that be happening in your case. Can you see if running the IDE or app using "Run as administrator" makes any difference?
  1. Helpful
  1. Miguel Leeuwe
  2. Saturday, 13 August 2022 16:56 PM UTC
Hi John, yes a policy might restrict writes to the LOCAL_MACHINE branch, but shouldn't restrict writes to CURRENT_USER (though not impossible of course).

Dawn, maybe you're suffering from the multiple problems with 'Virtualstore' folders in the registry. Do a search on 'virtualstore' and see if your data is in any of those. (what I always do is backup the registry and then delete all of these folders.).

  1. Helpful 1
  1. John Fauss
  2. Saturday, 13 August 2022 17:11 PM UTC
Ah, good point, Miguel! Thank you!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.