Drupal 6 devel dd () function not writing to drupal_debug.txt file

I am running a Drupal site for local development on a windows machine. I am trying to use the dd ($ data, $ label = NULL) function from the devel module to help debug. Using this function, write the debugging information to the drupal_debug.txt file in the / tmp folder on the computer hosting the Drupal site.

On my Windows machine, although I am using this feature, the drupal_debug.txt file is not being generated anywhere, so I guess I am using this feature incorrectly.

Here is a snippet of how I use it,

<?php
$test = "this is my test";
dd($test, $label = NULL);

      

I am looking for an example of the correct syntax for the dd ($ data, $ label = NULL) function. I have the Devel module enabled.

+2


source to share


4 answers


Your use of the function should be fine.



One problem might be that Drupal doesn't write access to your temp file, so you don't get the file. You receive an error when trying to use this feature. You can also try to see the file_directory_temp () function that will generate the folder that drupal will try to write.

+4


source


Where are you looking for the file? From quick reading of the code, it can be in the following places.

  • C: \ WINNT \ Temp
  • C: \ Windows \ Temp
  • You have configured php to upload upload_tmp_dir
  • Or in one of your site / file directories under / tmp folder


You don't say which version of Windows you are on, but Vista is very moving about what happens in the C: \ windows directory. A bit of a hack could create a custom C: \ winnt \ temp directory and look there.

0


source


Make sure to double check that the dd () call is in the code that is actually being executed. It found me today.

0


source


Check admin / settings / file-system where the default boot path points to

0


source







All Articles