How to output a variable value to the log from MSBuild

You can actually debug MSBuild scripts with Visual Studio 2010 now. It requires some hacking, and it isn’t officially supported, but it is an option. Otherwise use the Message task. Normal rules for referencing Properties, Items and Item Metadata (also referred to as batching) apply. This example: <Project DefaultTargets=”Build” xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″> <ItemGroup> <TestItem Include=”test1″ /> <TestItem Include=”test2″ /> … Read more

‘Step Into’ is suddenly not working in Visual Studio

With Visual Studio closed: Delete the solution’s suo file (contains debug information, user settings such as break points, bookmarks, and other user settings.) Delete the Visual Studio cache files (see below) Delete all temporary files (a shift from VS9 to VS10 is that VS10 uses the temp folder) Manually delete all obj and bin folders … Read more

How can I test a trigger function in GAS?

You can write a test function that passes a simulated event to your trigger function. Here’s an example that tests an onEdit() trigger function. It passes an event object with all the information described for “Spreadsheet Edit Events” in Understanding Events. To use it, set your breakpoint in your target onEdit function, select function test_onEdit … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)