Installation guide
2 Getting Started
2-14
outfile in this case is twebmagic.html, the second argument passed to
webmagic.
The second step in debugging is to use your Web browser to examine your
test file (
outfile)and make appropriate changes until the output is
displayed as you intend.
Debugging Template
To assist you in debugging, we have provided the template
tmfile_template.m, shown below in abbreviated form.
function tmfile_template()
% STEP 1
% Set up input variables as they would come in from
% the HTML input form created from INPUT_TEMPLATE.HTML.
outstruct.my_input_variable_1 = some appropriate test value;
% STEP 2
% Call your application function that was created from
% <MFILE_TEMPLATE.M>. Replace <MFILE_TEMPLATE> with the
% name of your application M-file. Provide a test output
% file name for the optional argument by replacing
% <TEST_OUTPUT.HTML> with your test output HTML file name.
retstr = <MFILE_TEMPLATE>(outstruct, '<TEST_OUTPUT.HTML>');
% STEP 3
% Examine the file you supplied for <TEST_OUTPUT.HTML> in
% your web browser.