How to set up remote debugging with VS 2008

As per the MSDN directions:

  1. On the test machine to be debugged, create an account with the same username and password as the development PC, and log in as that user
  2. Make sure you have the program to debug saved to the remote PC (you can’t run it from the development PC)
  3. Copy the directory in C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86 to the test machine to be debugged
  4. start msvcmon.exe. If you get a warning about “Network access: sharing and security model for local accounts”, then:
    1. Close out of msvcmon.exe
    2. go to Start->Programs->Administrative Tools->Local Security Policy
    3. Go to Local Policies->Security Options
    4. Under “Network Access: sharing and security model for local accounts”, right-click for Properties and choose “Classic – local users authenticate as themselves”
    5. OK out and restart msvcmon.exe
  5. If you get prompted to “unblock remote debugging”, select the local subnet, and click OK
  6. On the development PC running Visual Studio, load up the project to debug and go to Debug->Attach to Process
  7. On the Qualifier poplist, click “Browse…” and browse for the remote PC. You may get a warning that the firewall needs to be configured to allow the connection. If so, click Yes.
  8. If you get prompted to “unblock remote debugging”, select the local subnet, and click OK

You should now see the processes on the remote PC, in the list so you can attach the debugger.

Migrating Joomla 1.0.x to a new server

I didn’t want to do a new install; just wanted to keep everything as-is so I could set up a dev environment. This was going from Linux to Windows, vice versa is probably the same:

  1. Copy the following directories:
    1. administrator
    2. components
    3. editor
    4. images
    5. includes
    6. language
    7. mambots
    8. templates
    9. files in /
  2. Update configuration.php with the following:
    $mosConfig_absolute_path = 'C:/.../path-to-webroot'; 
    $mosConfig_debug= '1'; // useful if you want it
    $mosConfig_error_reporting = '1'; // useful if you want it
    $mosConfig_password = 'newpassword';  // db password, looks like this may be hashed though
    $mosConfig_user = 'new-db-username';

Hope this helps. Good luck!

Playing FLV files with Windows Media Player 11

Thanks to afterdawn for these directions:

  1. Install FFDSHow as per the directions. In the installer, check MP3 for audio; defaults are otherwise OK.
  2. Install Gabest Flash Video Splitter v1.0.0.4, also available at the above link.

When you open an FLV link in WMP you’ll get a warning that it doesn’t recognize the extension, but the file will play.

May come in handy for the Media Center project…

Creating a new PHP project with VS.PHP

This has tripped me up a dozen times, and I keep having to relearn it. To make a new project from an existing codebase (the most common scenario), follow these steps:

  1. Add new project
  2. Under “PHP Projects”, click “new project in existing folder” and name it
  3. Browse to location where your PHP files are
  4. Under “ignore directories”, uncheck “.svn” if it’s there. Leave everything else checked. This is the opposite of what you’d expect, and it seems like a bug to me.
  5. Chances are, the VS solution file was created as My Documents/Visual Studio 2008/Projects/PROJECTNAME/PROJECTNAME.sln. You probably want to move that to a location along with your PHP files if they’re located somewhere else.

This may well be fixed in the current version of VS.PHP, these directions are for version 2.4.